body, html {
    height: 100%
}

#authFrame,
.webauth-loading-button {
    height: 35px;
    min-width: 100%;
    max-width: 100%;
}

#authFrame {
    display: none;
}

button.webauth {
    -webkit-transition: all 200ms linear;
    -moz-transition: all 200ms linear;
    -o-transition: all 200ms linear;
    -ms-transition: all 200ms linear;
    transition: all 200ms linear;
}

.webauth-registration {
    display: table;
    width: 100%;
    height: 100%;
    padding: 1em;
}

.webauth-info {
    display: table-cell;
    vertical-align: middle;
}

.webauth-details {
    display: table;
    padding: 1px;
    background-color: #EFEFEF;
    width: 300px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2em;
}

.webauth-details img {
    max-width: 80px;
    height: auto;
}

.webauth-details > div:first-child {
    width: 1%;
    padding-right: 1em;
}

.webauth-details > div {
    display: table-cell;
    vertical-align: middle;
    overflow: hidden;
}

.webauth-icon {
    margin: 25px 0 !important;
}

.webauth-status,
.webauth-close {
    margin-top: 1em;
}

/* fingerprint icon in the passkey button turns Apple-red on hover, one line
   after another — consistent with the email-field icon and the offer dialog */
.webauth svg path {
    stroke: currentColor;
    transition: stroke 0.18s ease;
}

.webauth:hover svg path {
    stroke: #ff3b30;
}

.webauth:hover svg path:nth-child(1) {
    transition-delay: 0s;
}

.webauth:hover svg path:nth-child(2) {
    transition-delay: 0.07s;
}

.webauth:hover svg path:nth-child(3) {
    transition-delay: 0.14s;
}

.webauth:hover svg path:nth-child(4) {
    transition-delay: 0.21s;
}

.webauth:hover svg path:nth-child(5) {
    transition-delay: 0.28s;
}

/* overlay mode: a transparent click-catcher iframe placed over a parent-rendered
   icon (e.g. the email-field fingerprint). The button fills the iframe and is
   invisible — the visible icon is rendered by the parent page underneath. */
body.iframe.webauth-overlay {
    background: transparent !important;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body.iframe.webauth-overlay [data-webauth="container"],
body.iframe.webauth-overlay .text-center {
    margin: 0;
    padding: 0;
}

body.iframe.webauth-overlay .webauth.webauth-overlay-btn {
    /* fill the whole iframe viewport so the entire icon area is the click target
       (relative to the container chain the button would otherwise collapse) */
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    box-shadow: none;
    color: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

body.iframe.webauth-overlay .webauth.webauth-overlay-btn svg,
body.iframe.webauth-overlay .webauth.webauth-overlay-btn b {
    display: none;
}
