/*
 * Sign-in pages (login, 2FA, password reset) - loaded after adminlogin.css.
 * A frosted-glass card over the clinic photo, in the same type and
 * controls as the rest of the admin (see eyemo-ui.css).
 */

body.login-bg {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.006em;
    position: relative;
    overflow: hidden;
    /* Replaces the old clinic photo: near-black with soft brand glows. */
    background-color: #07080b !important;
    background-image:
        radial-gradient(55% 45% at 18% 20%, rgba(172, 215, 225, 0.16), transparent 70%),
        radial-gradient(45% 40% at 85% 85%, rgba(232, 168, 124, 0.10), transparent 70%),
        radial-gradient(90% 70% at 50% 120%, rgba(54, 55, 64, 0.85), transparent 70%) !important;
    background-size: cover;
}
body.login-bg *:not(i):not([class*="fa-"]):not(.material-symbols-rounded) { font-family: inherit; }

/* The iris, centred behind the card. */
body.login-bg::before {
    content: '';
    position: fixed;
    left: 50%;
    top: 50%;
    width: min(118vmin, 1180px);
    height: min(118vmin, 1180px);
    transform: translate(-50%, -50%);
    background: url('../images/login-iris.svg') no-repeat center / contain;
    -webkit-mask: radial-gradient(circle at center, #000 48%, transparent 71%);
    mask: radial-gradient(circle at center, #000 48%, transparent 71%);
    opacity: 0.8;
    pointer-events: none;
    animation: iris-breathe 14s ease-in-out infinite;
}
/* Fine film grain so the gradients don't band. */
body.login-bg::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: overlay;
    pointer-events: none;
}
@keyframes iris-breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.025); }
}
@media (prefers-reduced-motion: reduce) {
    body.login-bg::before { animation: none; }
}

body.login-bg .login-card {
    position: relative;
    z-index: 1;
    max-width: 400px;
    padding: 40px 36px 34px;
    border-radius: 28px;
    background: rgba(18, 19, 24, 0.55);
    backdrop-filter: saturate(170%) blur(28px);
    -webkit-backdrop-filter: saturate(170%) blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), 0 30px 80px rgba(0, 0, 0, 0.45);
    color: #f5f5f7;
}

body.login-bg .brand { margin-bottom: 28px; }
body.login-bg .brand::before {
    content: '';
    display: block;
    width: 112px;
    height: 24px;
    margin: 0 auto 22px;
    background: #f5f5f7;
    -webkit-mask: url('../images/eyemologo.svg') no-repeat center / contain;
    mask: url('../images/eyemologo.svg') no-repeat center / contain;
}
body.login-bg .brand h1 {
    font-size: 1.45rem;
    font-weight: 650;
    letter-spacing: -0.025em;
    color: #f5f5f7;
    margin: 0;
}

body.login-bg .form-group { margin-bottom: 18px; }
body.login-bg .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(245, 245, 247, 0.72);
    margin-bottom: 7px;
}
body.login-bg .form-group input,
body.login-bg input[type="text"],
body.login-bg input[type="email"],
body.login-bg input[type="password"],
body.login-bg input[type="username"] {
    height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.07);
    color: #f5f5f7;
    font-size: 15px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
body.login-bg input::placeholder { color: rgba(245, 245, 247, 0.4); }
body.login-bg .form-group input:focus,
body.login-bg input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: #8ccfe0;
    box-shadow: 0 0 0 4px rgba(140, 207, 224, 0.25);
}
body.login-bg input:-webkit-autofill {
    -webkit-text-fill-color: #f5f5f7;
    -webkit-box-shadow: 0 0 0 40px #26262b inset;
    caret-color: #f5f5f7;
}
body.login-bg i#togglePassword,
body.login-bg .fa-eye,
body.login-bg .fa-eye-slash { color: rgba(245, 245, 247, 0.6) !important; }

body.login-bg .forgot-password { color: rgba(245, 245, 247, 0.72); font-size: 13.5px; }
body.login-bg .forgot-password:hover { color: #8ccfe0; }

body.login-bg .login-btn {
    height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    background: #ACD7E1;
    color: #0b2a33;
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -0.01em;
    box-shadow: 0 6px 20px rgba(172, 215, 225, 0.25);
    transition: transform 0.1s ease, background-color 0.15s ease;
}
body.login-bg .login-btn:hover { background: #c1e3eb; }
body.login-bg .login-btn:active { transform: scale(0.985); }

body.login-bg .error { color: #ff8a80; font-size: 12.5px; margin-top: 6px; }
body.login-bg p, body.login-bg .tf-help { color: rgba(245, 245, 247, 0.75); }
body.login-bg a { color: #8ccfe0; }

/* SweetAlert on these pages */
body.login-bg .swal2-popup {
    border-radius: 22px !important;
    background: #1c1c20 !important;
    color: #f5f5f7 !important;
}
body.login-bg .swal2-title { color: #f5f5f7 !important; font-weight: 650 !important; }
body.login-bg .swal2-html-container { color: rgba(245, 245, 247, 0.72) !important; }
body.login-bg .swal2-styled { border-radius: 999px !important; font-weight: 600 !important; }
