/* Login-only liquid glass treatment. Opaque surfaces remain the blur fallback. */
:root {
    --amn-primary: #356c56;
    --amn-primary-light: #4c7e62;
    --amn-primary-dark: #27513f;
    --amn-text: #183e3b;
    --amn-text-muted: #536c69;
}

.login-image-section::before {
    background: linear-gradient(145deg, rgba(5, 55, 51, 0.95), rgba(7, 74, 65, 0.88) 55%, rgba(9, 37, 40, 0.94));
}

.login-image-section::after {
    background:
        radial-gradient(ellipse at 0% 0%, rgba(131, 233, 202, 0.24), transparent 55%),
        radial-gradient(ellipse at 95% 80%, rgba(228, 197, 127, 0.14), transparent 55%);
    box-shadow: inset -1px 0 rgba(255, 255, 255, 0.24);
}

.image-content {
    padding: clamp(2rem, 5vw, 4.5rem);
}

.image-content .brand-logo {
    filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
}

.image-content h1 {
    font-size: clamp(2rem, 3.25vw, 3.25rem);
    letter-spacing: -1.3px;
    line-height: 1.2;
}

.image-content h1 .highlight {
    color: #f0d492;
}

.image-content p {
    color: #e1efea;
    font-size: 0.95rem;
    max-width: 380px;
}

.feature-list {
    max-width: 390px;
    margin-top: 2rem;
    padding: 1.25rem;
    border: 1px solid rgba(226, 255, 245, 0.2);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.13), 0 12px 32px rgba(0, 25, 23, 0.08);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.feature-list li {
    font-size: 0.82rem;
    gap: 0.625rem;
}

.feature-list li:last-child {
    margin-bottom: 0;
}

.feature-list li i {
    border: 1px solid rgba(241, 216, 163, 0.3);
    background: linear-gradient(145deg, rgba(255, 237, 196, 0.18), rgba(255, 237, 196, 0.04));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.18);
    color: #f0d492;
}

.image-footer {
    font-size: 0.7rem;
    line-height: 1.8;
}

.login-form-section {
    isolation: isolate;
    padding: 3rem 2rem;
    background:
        radial-gradient(ellipse at 75% 10%, rgba(243, 224, 179, 0.48), transparent 52%),
        radial-gradient(ellipse at 5% 90%, rgba(75, 159, 142, 0.25), transparent 54%),
        linear-gradient(135deg, #e1ece7, #f5f5ec 54%, #d6eae3);
}

.login-form-section::before {
    inset: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    background: repeating-linear-gradient(125deg, transparent 0 100px, rgba(255, 255, 255, 0.18) 101px, transparent 102px 200px);
}

.login-form-section::after {
    display: none;
}

.liquid-scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.liquid-orb {
    position: absolute;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    box-shadow: inset 3px 4px 14px rgba(255, 255, 255, 0.75), inset -12px -18px 28px rgba(12, 88, 74, 0.14), 0 28px 56px rgba(20, 79, 66, 0.1);
    animation: liquid-drift 18s ease-in-out infinite alternate;
}

.liquid-orb-teal {
    width: 290px;
    height: 290px;
    top: calc(50% - 325px);
    left: calc(50% - 310px);
    background: radial-gradient(circle at 28% 25%, #e4fff1, #89c7b5 44%, #4d9887 80%);
}

.liquid-orb-gold {
    width: 210px;
    height: 210px;
    bottom: calc(50% - 345px);
    right: calc(50% - 285px);
    background: radial-gradient(circle at 28% 22%, #fffbed, #e9d5a3 48%, #cbb87b);
    animation-delay: -8s;
}

.liquid-orbit {
    position: absolute;
    width: 620px;
    height: 620px;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-30deg) scaleX(0.8);
    box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.08);
}

.login-card-wrapper {
    max-width: 460px;
}

.login-card {
    padding: 2.5rem 2.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 32px;
    background: #edf3ed;
    box-shadow:
        inset 0 2px 2px rgba(255, 255, 255, 0.9),
        inset 0 -1px 2px rgba(255, 255, 255, 0.7),
        0 28px 65px -20px rgba(18, 65, 54, 0.25),
        0 8px 24px -14px rgba(18, 65, 54, 0.2);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .login-card {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.35) 55%, rgba(255, 255, 255, 0.57));
        -webkit-backdrop-filter: blur(28px) saturate(145%);
        backdrop-filter: blur(28px) saturate(145%);
    }
}

.login-card::before {
    inset: 0;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: inherit;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.4), transparent 28% 70%, rgba(255, 255, 255, 0.2));
    pointer-events: none;
}

.login-header {
    position: relative;
    margin-bottom: 2rem;
}

.login-emblem {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 1.375rem;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(185, 220, 205, 0.38));
    box-shadow: inset 0 1px 2px #fff, 0 8px 18px rgba(25, 89, 72, 0.1);
    color: #267867;
    font-size: 1.75rem;
}

.login-header h2 {
    font-size: 1.5rem;
    letter-spacing: -0.7px;
}

.login-header p {
    font-size: 0.8rem;
    line-height: 1.8;
    margin-bottom: 0;
}

.form-floating input {
    border: 1px solid rgba(107, 147, 133, 0.3);
    background: rgba(255, 255, 255, 0.44);
    box-shadow: inset 0 2px 4px rgba(40, 78, 66, 0.035), 0 1px rgba(255, 255, 255, 0.8);
    border-radius: 15px;
}

.form-floating input:hover {
    border-color: #83a99b;
    background: rgba(255, 255, 255, 0.6);
}

.form-floating input:focus {
    border-color: #428e79;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 0 0 4px rgba(41, 128, 102, 0.1), inset 0 1px 2px #fff;
}

.form-floating label,
.form-floating .input-icon,
.toggle-password {
    color: #617a73;
}

.form-floating > label::after {
    background: transparent !important;
}

.remember-me input[type="checkbox"] {
    border: 1px solid #8aa89b;
    background-color: rgba(255, 255, 255, 0.5);
}

.btn-login {
    border: 1px solid rgba(8, 91, 73, 0.4);
    border-radius: 15px;
    background: linear-gradient(160deg, #438f7c, #176856 62%, #0e5648);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.4), inset 0 -2px rgba(0, 45, 34, 0.15), 0 8px 18px rgba(16, 93, 72, 0.2);
    font-size: 0.9rem;
}

.btn-login::after {
    content: '';
    position: absolute;
    inset: 1px 1px 50%;
    border-radius: 13px 13px 40% 40%;
    background: linear-gradient(rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.01));
    pointer-events: none;
}

.btn-login:hover {
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), 0 12px 24px rgba(16, 93, 72, 0.28);
}

.btn-login:focus-visible,
.toggle-password:focus-visible,
.remember-me input:focus-visible {
    outline: 3px solid #267867;
    outline-offset: 4px;
}

.divider {
    color: #61766e;
    font-size: 0.7rem;
    margin: 1.5rem 0 0;
}

.divider::before,
.divider::after {
    background: linear-gradient(90deg, transparent, rgba(91, 131, 114, 0.28), transparent);
}

.security-badges {
    flex-wrap: wrap;
    gap: 0.625rem 1rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top-color: rgba(255, 255, 255, 0.6);
}

.security-badges .badge-item {
    font-size: 0.625rem;
    color: #536c61;
}

.security-badges .badge-item i {
    color: #367e69;
    font-size: 0.75rem;
}

.toast-notification {
    background: #f3f8f4;
    border-top: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 18px;
}

@keyframes liquid-drift {
    to { transform: translate(14px, -20px) rotate(8deg); }
}

@media (max-width: 991.98px) {
    .login-form-section { min-height: 100svh; }
    .login-header .logo-mobile { width: 150px; margin-bottom: 1.5rem; }
    .login-emblem { display: none; }
}

@media (max-width: 575.98px) {
    .login-form-section { padding: 2rem 1rem; }
    .login-card { padding: 2rem 1.5rem; border-radius: 28px; }
    .liquid-orb-teal { width: 230px; height: 230px; left: -75px; }
    .liquid-orb-gold { width: 170px; height: 170px; right: -65px; }
    .toast-notification { min-width: 0; max-width: none; left: 1rem; right: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
