/* Post-login passkey offer modal (admin): large fingerprint + embedded register
   iframe. Hovering anywhere on the dialog runs the lines red one after another.
   (The login-page passkey trigger styles live in _css/pages/account/login.css.) */

.passkey-offer-modal .modal-dialog {
    width: 440px;
    max-width: calc(100% - 20px);
}

.passkey-offer-modal .modal-body {
    padding: 2em 1.5em;
}

.passkey-offer-icon {
    display: block;
    text-align: center;
    margin: 0 auto 1em;
}

.passkey-offer-title {
    margin: 0 0 0.4em;
}

.passkey-offer-text {
    color: #777;
    margin-bottom: 1.5em;
}

.passkey-offer-frame iframe {
    display: block;
    width: 100%;
    height: 44px;
    border: 0;
}

.passkey-offer-frame .webauth-loading-button {
    width: 100%;
}

.passkey-offer-later {
    margin-top: 0.5em;
    color: #999;
}

.passkey-offer-icon path {
    stroke: #555;
    transition: stroke 0.18s ease;
}

.passkey-offer-modal .modal-content:hover .passkey-offer-icon path,
.passkey-offer-modal.passkey-offer-active .passkey-offer-icon path {
    stroke: #ff3b30;
}

.passkey-offer-modal .modal-content:hover .passkey-offer-icon path:nth-child(1),
.passkey-offer-modal.passkey-offer-active .passkey-offer-icon path:nth-child(1) {
    transition-delay: 0s;
}

.passkey-offer-modal .modal-content:hover .passkey-offer-icon path:nth-child(2),
.passkey-offer-modal.passkey-offer-active .passkey-offer-icon path:nth-child(2) {
    transition-delay: 0.07s;
}

.passkey-offer-modal .modal-content:hover .passkey-offer-icon path:nth-child(3),
.passkey-offer-modal.passkey-offer-active .passkey-offer-icon path:nth-child(3) {
    transition-delay: 0.14s;
}

.passkey-offer-modal .modal-content:hover .passkey-offer-icon path:nth-child(4),
.passkey-offer-modal.passkey-offer-active .passkey-offer-icon path:nth-child(4) {
    transition-delay: 0.21s;
}

.passkey-offer-modal .modal-content:hover .passkey-offer-icon path:nth-child(5),
.passkey-offer-modal.passkey-offer-active .passkey-offer-icon path:nth-child(5) {
    transition-delay: 0.28s;
}

/* lock screen (logon): fingerprint passkey icon inside the password field, sitting
   left of the submit arrow, with a transparent click-catcher iframe over it.
   (Scoped to .logon-form — the login page's trigger styles live in login.css.) */
.logon-form .input-group {
    position: relative;
}

.logon-form .input-group .form-control {
    padding-right: 38px;
}

.logon-form .passkey-trigger,
.logon-form .passkey-overlay {
    position: absolute;
    top: 0;
    right: 38px; /* offset by the submit arrow's natural width so the icon sits inside the field */
    width: 38px;
    height: 100%;
}

.logon-form .passkey-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #999;
    cursor: pointer;
    z-index: 2;
}

.logon-form .passkey-overlay {
    z-index: 3;
}

.logon-form .passkey-overlay-frame {
    display: block !important; /* beat theme iframe rules that force inline (→ 0×0) */
    width: 100%;
    height: 100%;
    background: transparent;
}

/* on hover the fingerprint lines turn Apple-red one after another */
.logon-form .passkey-icon path {
    stroke: #999;
    transition: stroke 0.18s ease;
}

.logon-form .input-group:hover .passkey-icon path {
    stroke: #ff3b30;
}

.logon-form .input-group:hover .passkey-icon path:nth-child(1) {
    transition-delay: 0s;
}

.logon-form .input-group:hover .passkey-icon path:nth-child(2) {
    transition-delay: 0.07s;
}

.logon-form .input-group:hover .passkey-icon path:nth-child(3) {
    transition-delay: 0.14s;
}

.logon-form .input-group:hover .passkey-icon path:nth-child(4) {
    transition-delay: 0.21s;
}

.logon-form .input-group:hover .passkey-icon path:nth-child(5) {
    transition-delay: 0.28s;
}
