.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    background: #0b1026;
    color: #f1f5f9;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.auth-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 85% 65% at 50% -15%, rgba(124, 58, 237, 0.45), transparent 60%),
        radial-gradient(ellipse 55% 45% at 100% 110%, rgba(219, 39, 119, 0.32), transparent 65%),
        radial-gradient(ellipse 55% 45% at 0% 100%, rgba(37, 99, 235, 0.38), transparent 65%),
        linear-gradient(160deg, #0b1026 0%, #131240 48%, #2d1b5e 100%);
    pointer-events: none;
    z-index: 0;
}

.auth-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 30%, transparent 80%);
    mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 30%, transparent 80%);
}

.auth-blob {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    will-change: transform;
}
.auth-blob-1 {
    width: 340px;
    height: 340px;
    top: -90px;
    left: -70px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.55), transparent 70%);
    animation: authFloat 16s ease-in-out infinite;
}
.auth-blob-2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    right: -60px;
    background: radial-gradient(circle, rgba(219, 39, 119, 0.45), transparent 70%);
    animation: authFloat 20s ease-in-out infinite reverse;
}
.auth-blob-3 {
    width: 260px;
    height: 260px;
    top: 45%;
    left: 55%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.40), transparent 70%);
    animation: authFloat 24s ease-in-out infinite;
}

@keyframes authFloat {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(24px, -32px) scale(1.08); }
    66%  { transform: translate(-20px, 22px) scale(0.94); }
    100% { transform: translate(0, 0) scale(1); }
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.065);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1.35rem;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    animation: authCardIn .5s cubic-bezier(.2, .7, .3, 1) both;
}

@keyframes authCardIn {
    from { opacity: 0; transform: translateY(18px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-logo {
    width: 4.1rem;
    height: 4.1rem;
    border-radius: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    box-shadow: 0 10px 28px rgba(124, 58, 237, 0.45);
}

.auth-card h4 {
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.auth-card .text-muted,
.auth-card .form-text {
    color: rgba(255, 255, 255, 0.62) !important;
}

.auth-card .form-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: .85rem;
    font-weight: 600;
}

.auth-card .form-control {
    background: rgba(2, 6, 23, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    border-radius: .6rem;
    min-height: calc(1.5em + .75rem + 2px);
}

.auth-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.auth-card .form-control:focus {
    background: rgba(2, 6, 23, 0.55);
    border-color: #a78bfa;
    color: #fff;
    box-shadow: 0 0 0 .22rem rgba(139, 92, 246, .28);
}

.auth-card .btn-primary {
    background: linear-gradient(135deg, #7c3aed, #db2777);
    border: none;
    border-radius: .6rem;
    font-weight: 600;
    padding: .65rem 1rem;
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.35);
    transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}

.auth-card .btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.45);
}

.auth-card .btn-primary:active {
    transform: scale(.97);
}

.auth-card a {
    color: #c4b5fd;
    font-weight: 500;
}

.auth-card a:hover {
    color: #ddd6fe;
}

.auth-card .alert {
    border-radius: .65rem;
}

@media (max-width: 400px) {
    .auth-page { padding: .75rem; }
    .auth-card { border-radius: 1.1rem; }
}