.blueprint-bg {
    background-color: #022448;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: blueprint-drift 48s linear infinite;
}

@keyframes blueprint-drift {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 20px 20px;
    }
}

/* Particle network canvas */
.particles-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.luxury-silhouette {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 80%;
    height: 80%;
    background-image: url("https://lh3.googleusercontent.com/aida-public/AB6AXuDDV0TvusGyFTG7yJHZQWxyqLLlpPx1tqMB6u2jvz65r4YQnDPPuiyorjgOIRLU9rmCrjZlBhiZggy6F_KNxL5uklna-6PgCWUh7ISSJB9pDk_AFaQVLcJ8CrIgzc_30ulfPpiqW4KSR1JFVG3uXv6fBfYWZpMSfYpN1AmyylZCw3OOsczcklaUgtNQcSLZL5TJALXB6VAH_VxnMcVwapbqPTNeirpLJslLRGin0LgpXywCc6H0uLS2gA");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
    animation: silhouette-drift 60s ease-in-out infinite alternate;
}

@keyframes silhouette-drift {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-12px, -8px);
    }
}

/* Card: solid white + soft pronounced shadow + gold shimmer */
.login-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #ffffff;
    border: 1px solid rgba(30, 58, 95, 0.06);
    box-shadow:
        0 8px 24px rgba(2, 36, 72, 0.18),
        0 24px 56px rgba(2, 36, 72, 0.32);
    animation: login-card-enter 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-card::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -60%;
    width: 45%;
    height: 180%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(201, 168, 76, 0) 35%,
        rgba(201, 168, 76, 0.14) 50%,
        rgba(201, 168, 76, 0.06) 58%,
        transparent 70%
    );
    transform: translateX(0) skewX(-18deg);
    pointer-events: none;
    z-index: 1;
    animation: card-shimmer 5s ease-in-out infinite;
}

.login-card > * {
    position: relative;
    z-index: 2;
}

.login-title {
    color: #1E3A5F;
}

.login-subtitle {
    color: #1E3A5F;
    opacity: 0.72;
}

.login-label {
    color: #1E3A5F;
}

.login-field-icon {
    color: #1E3A5F;
    opacity: 0.75;
    pointer-events: none;
}

.login-forgot {
    color: #1E3A5F;
}

.login-forgot:hover {
    color: #C9A84C;
}

.login-secure {
    color: #1E3A5F;
    opacity: 0.65;
}

.login-secure .material-symbols-outlined {
    color: #C9A84C;
}

@keyframes login-card-enter {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes card-shimmer {
    0%,
    48% {
        transform: translateX(-30%) skewX(-18deg);
        opacity: 0;
    }
    56% {
        opacity: 1;
    }
    88% {
        transform: translateX(280%) skewX(-18deg);
        opacity: 0.85;
    }
    100% {
        transform: translateX(280%) skewX(-18deg);
        opacity: 0;
    }
}

.icon-filled {
    font-variation-settings: "FILL" 1;
}

.alert-error {
    background-color: #ffdad6;
    color: #93000a;
    border: 1px solid #ba1a1a;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 14px;
    line-height: 20px;
    animation: alert-fade-in 0.35s ease-out both;
}

@keyframes alert-fade-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form fields: light gray border, gold focus */
.login-field {
    color: #1E3A5F;
    background-color: #ffffff;
    border-color: #E2E8F0;
    transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.login-field:focus {
    border-color: #C9A84C !important;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.28);
    outline: none;
}

.relative:has(.login-field:focus) .login-field-icon {
    color: #C9A84C;
    opacity: 1;
}

/* Submit button: gold + white text, shine + scale on hover */
.login-submit {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    transition:
        color 0.28s ease,
        transform 0.28s ease,
        box-shadow 0.28s ease,
        background-color 0.28s ease,
        opacity 0.2s ease;
}

.login-submit::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.35) 45%,
        transparent 100%
    );
    transform: skewX(-18deg);
    pointer-events: none;
}

.login-submit:hover:not(:disabled) {
    color: #1E3A5F;
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(201, 168, 76, 0.35);
}

.login-submit:hover:not(:disabled)::after {
    animation: login-btn-shine 0.85s ease;
}

@keyframes login-btn-shine {
    from {
        left: -120%;
    }
    to {
        left: 140%;
    }
}

.login-submit:active:not(:disabled) {
    transform: scale(1.01);
}

.login-submit:disabled {
    cursor: wait;
    opacity: 0.9;
    transform: none;
}

.login-submit__content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-submit__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: login-spin 0.7s linear infinite;
    flex-shrink: 0;
}

.login-submit.is-loading .login-submit__spinner {
    display: inline-block;
}

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .blueprint-bg,
    .luxury-silhouette,
    .login-card,
    .login-card::before,
    .alert-error,
    .login-submit::after,
    .login-submit__spinner {
        animation: none !important;
    }

    .login-card {
        opacity: 1;
        transform: none;
    }

    .login-card::before {
        display: none;
    }

    .login-submit:hover:not(:disabled) {
        transform: none;
    }

    .login-field {
        transition: none;
    }

    .particles-canvas {
        display: none;
    }
}
