.login-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #0a0f1e;
    color: #fff;
}

.login-bg-video,
.login-bg-grain {
    position: absolute;
    inset: 0;
}

.login-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.login-bg-grain {
    pointer-events: none;
    opacity: 0.3;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

.login-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.login-orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(48, 127, 226, 0.18);
    top: -100px;
    right: -100px;
}

.login-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(235, 38, 42, 0.12);
    bottom: -80px;
    left: -80px;
}


.login-shell {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 56px;
}

.login-back-link {
    position: absolute;
    top: 28px;
    left: 28px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.login-back-link:hover {
    color: #fff;
    transform: translateX(-2px);
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 48px 44px 44px;
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    animation: loginFadeUp 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

@keyframes loginFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}

.login-brand img {
    width: 120px;
    height: auto;
    display: block;
}

.login-kicker {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.52);
    margin: 0 0 12px;
}

.login-title {
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #fff;
    text-align: center;
    margin: 0 0 10px;
}

.login-subtitle {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
    margin: 0 0 30px;
}

.login-form .field {
    margin-bottom: 18px;
}

.login-form label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.56);
    margin-bottom: 8px;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 15px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-family: inherit;
    font-size: 15px;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.login-form input[type="email"]::placeholder,
.login-form input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
    outline: none;
    border-color: rgba(96, 165, 250, 0.75);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 4px rgba(48, 127, 226, 0.18);
}

.login-forgot {
    text-align: right;
    margin: 2px 0 22px;
}

.login-forgot a {
    font-size: 13px;
    font-weight: 600;
    color: #93c5fd;
    text-decoration: none;
}

.login-forgot a:hover {
    text-decoration: underline;
}

.login-submit {
    width: 100%;
    padding: 14px 26px;
    font-size: 16px;
    border: none;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0 20px;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.login-divider span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.56);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 26px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-google:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.login-signup {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.68);
    margin: 24px 0 0;
}

.login-signup a {
    font-weight: 700;
    color: #bfdbfe;
    text-decoration: none;
}

.login-signup a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .login-shell {
        padding: 88px 18px 36px;
    }

    .login-back-link {
        top: 20px;
        left: 18px;
    }

    .login-card {
        padding: 34px 22px 28px;
        border-radius: 24px;
    }
}
