/***
Login page
***/

body {
    background-color: #FAFAFA !important;
}

/* logo page */

.login .logo {
    margin: 0 auto;
    margin-top: 60px;
    margin-bottom: 10px;
    padding: 15px;
    text-align: center;
}

.login .logo img {
    max-width: 300px;
}

.login .content {
    background-color: #fff;
    width: 360px;
    margin: 0 auto;
    margin-bottom: 0px;
    padding: 30px;
    padding-top: 20px;
    padding-bottom: 15px;
}

.login .content h3 {
    color: #000;
}

.login .content h4 {
    color: #555;
}

.login .content p {
    color: #222;
}

.login .content .login-form,
.login .content .forget-form {
    padding: 0px;
    margin: 0px;
}

.login .content .input-icon {
    border-left: 2px solid #4caa44 !important;
}

.login .content .input-icon .form-control {
    border-left: 0;
}

.login .content .forget-form {
    display: none;
}

.login .content .register-form {
    display: none;
}

.login .content .form-title {
    font-weight: 300;
    margin-bottom: 25px;
}

.login .content .form-actions {
    background-color: #fff;
    clear: both;
    border: 0px;
    border-bottom: 1px solid #eee;
    padding: 0px 30px 25px 30px;
    margin-left: -30px;
    margin-right: -30px;
}

.login .content .form-actions .checkbox {
    margin-left: 0;
    padding-left: 0;
}

.login .content .forget-form .form-actions {
    border: 0;
    margin-bottom: 0;
    padding-bottom: 20px;
}

.login .content .register-form .form-actions {
    border: 0;
    margin-bottom: 0;
    padding-bottom: 0px;
}

.login .content .form-actions .checkbox {
    margin-top: 8px;
    display: inline-block;
}

.login .content .form-actions .btn {
    margin-top: 1px;
}

.login .content .forget-password {
    margin-top: 25px;
}

.login .content .create-account {
    border-top: 1px dotted #eee;
    padding-top: 10px;
    margin-top: 15px;
}

.login .content .create-account a {
    display: inline-block;
    margin-top: 5px;
}

/* select2 dropdowns */
.login .content .select2-container {
    border-left: 2px solid #4caa44 !important;
}

.login .content .select2-container .select2-choice {
    border-left: none !important;
}

.login .content .select2-container i {
    display: inline-block;
    position: relative;
    color: #ccc;
    z-index: 1;
    top: 1px;
    margin: 4px 4px 0px 3px;
    width: 16px;
    height: 16px;
    font-size: 16px;
    text-align: center;
}

.login .content .has-error .select2-container i {
    color: #b94a48;
}

.login .content .select2-container a span {
    font-size: 13px;
}

.login .content .select2-container a span img {
    margin-left: 4px;
}

/* footer copyright */
.login .copyright {
    text-align: center;
    margin: 0 auto;
    padding: 10px;
    color: #999;
    font-size: 13px;
}

@media (max-width: 480px) {
    /***
    Login page
    ***/
    .login .logo {
        margin-top: 10px;
    }

    .login .content {
        width: 280px;
    }

    .login .content h3 {
        font-size: 22px;
    }

    .login .checkbox {
        font-size: 13px;
    }
}

/* hidden host for the passkey login iframe — triggered by the fingerprint icon */
.passkey-frame-host {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* fingerprint passkey trigger — rendered as a borderless icon inside the email field */
.input-icon.has-passkey .form-control {
    padding-right: 38px;
}

.passkey-trigger {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #999;
    cursor: pointer;
    z-index: 2;
}

.passkey-trigger:hover,
.passkey-trigger:focus {
    color: #555;
    outline: none;
}

/* Metronic's `.input-icon i` absolutely-positions every icon with a top margin;
   reset it for the sign-in icon so the trigger's flex centering keeps it aligned */
.passkey-trigger i {
    position: static;
    margin: 0;
    width: auto;
    height: auto;
    color: inherit;
}

/* on hover the fingerprint lines turn Apple-red one after another.
   explicit base stroke so the lines never follow the trigger's hover color
   (otherwise they'd flash to the grey/black hover color before turning red) */
.passkey-icon path {
    stroke: #999;
    transition: stroke 0.18s ease;
}

/* hover anywhere over the email field (incl. the transparent overlay iframe) */
.input-icon:hover .passkey-icon path {
    stroke: #ff3b30;
}

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

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

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

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

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

/* transparent overlay iframe over the fingerprint icon — captures the click so
   the cross-origin get() runs inside the iframe (keeps focus/activation in Safari) */
.input-icon .passkey-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 38px;
    height: 100%;
    z-index: 3;
}

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

/* wider tooltips so the staff-login email ("als … anmelden") stays on one line —
   matches custom.css's `div.tooltip .tooltip-inner` specificity and loads after it */
div.tooltip .tooltip-inner {
    max-width: none;
    white-space: nowrap;
}
