/* Login — studio language */

body:has(.login-page) {
    background: #0a0a0a !important;
}

body:has(.login-page) .main-content {
    flex: 1;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    background: #0a0a0a !important;
}

body:has(.login-page) .footer {
    display: none !important;
}

body:has(.login-page) .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1001;
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body:has(.login-page) .logo-link--wordmark {
    font-family: "Syne", "Antonio", sans-serif;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: #ffffff;
}

.login-page,
.lg-studio {
    --bg: #0a0a0a;
    --text: #ffffff;
    --muted: rgb(156, 156, 156);
    --line: rgba(255, 255, 255, 0.12);
    --accent-b: #00d4aa;
    --accent-rgb: 0, 212, 170;
    --font-sans: "Inter Tight", system-ui, -apple-system, sans-serif;
    --font-tight: "Inter Tight", system-ui, sans-serif;
    --font-art: "Syne", "Antonio", sans-serif;
    --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

    position: relative;
    flex: 1;
    min-height: calc(100vh - 80px - env(safe-area-inset-top, 0px));
    min-height: calc(100dvh - 80px - env(safe-area-inset-top, 0px));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(104px + env(safe-area-inset-top, 0px)) 20px calc(40px + env(safe-area-inset-bottom, 0px));
    overflow: hidden;
    box-sizing: border-box;
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
}

.lg-studio-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: #0a0a0a;
}

.login-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    transform: scale(1.06);
    filter: saturate(0.85) brightness(0.55);
}

.lg-studio-veil {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 50% at 80% 15%, rgba(var(--accent-rgb), 0.18), transparent 55%),
        radial-gradient(ellipse 45% 40% at 10% 85%, rgba(124, 92, 255, 0.14), transparent 50%),
        linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.72) 45%, rgba(10, 10, 10, 0.88) 100%);
}

.lg-studio-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    pointer-events: none;
    animation: lgOrbFloat 16s ease-in-out infinite;
}

.lg-studio-orb--1 {
    top: -10%;
    right: 6%;
    width: min(380px, 42vw);
    height: min(380px, 42vw);
    background: rgba(var(--accent-rgb), 0.22);
}

.lg-studio-orb--2 {
    bottom: -12%;
    left: -4%;
    width: min(340px, 40vw);
    height: min(340px, 40vw);
    background: rgba(124, 92, 255, 0.16);
    animation-duration: 20s;
    animation-direction: reverse;
}

@keyframes lgOrbFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(14px, -18px, 0) scale(1.06); }
}

.login-container,
.lg-studio-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 26rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.lg-studio-brand {
    margin: 0 0 8px;
    font-family: var(--font-art);
    font-size: clamp(2.6rem, 10vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.9;
    color: #fff;
}

.lg-studio-kicker {
    margin: 0 0 28px;
    font-family: var(--font-tight);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-b);
}

.login-card {
    width: 100%;
    padding: 28px 0 0;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    text-align: left;
}

.login-title {
    margin: 0 0 8px;
    font-family: var(--font-art);
    font-size: clamp(1.55rem, 4vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-align: center;
    color: transparent;
    background: linear-gradient(105deg, var(--accent-b), #5eead4 55%, #fff 120%);
    -webkit-background-clip: text;
    background-clip: text;
}

.login-subtitle {
    margin: 0 0 28px;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.4;
    text-align: center;
    color: var(--muted);
}

.flash-messages {
    margin-bottom: 18px;
}

.alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 10px;
    font-family: var(--font-tight);
    font-size: 0.88rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(var(--accent-rgb), 0.12);
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    color: var(--accent-b);
}

.alert-error {
    background: rgba(255, 59, 48, 0.14);
    border: 1px solid rgba(255, 59, 48, 0.45);
    color: #ff3b30;
}

.alert-info {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    color: rgba(255, 255, 255, 0.85);
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-tight);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.form-input {
    width: 100%;
    box-sizing: border-box;
    min-height: 50px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 14px;
    font-family: var(--font-tight);
    font-size: 0.95rem;
    color: #fff;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: rgba(var(--accent-rgb), 0.55);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: none;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.32);
}

.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 6px;
}

.password-toggle:hover {
    color: var(--accent-b);
}

.form-options {
    text-align: right;
    margin-bottom: 22px;
}

.forgot-password {
    color: var(--accent-b);
    text-decoration: none;
    font-family: var(--font-tight);
    font-size: 0.88rem;
    font-weight: 600;
}

.forgot-password:hover {
    color: #5eead4;
}

.login-form .login-btn {
    width: 100%;
    min-height: 52px;
    padding: 0 1.4rem;
    background: var(--accent-b);
    border: none;
    border-radius: 999px;
    color: #0a0a0a;
    font-family: var(--font-tight);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(var(--accent-rgb), 0.28);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.login-form .login-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 12px 32px rgba(var(--accent-rgb), 0.35);
}

.register-link {
    text-align: center;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-family: var(--font-tight);
    color: var(--muted);
}

.register-link a {
    color: var(--accent-b);
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 520px) {
    .login-page,
    .lg-studio {
        padding: 96px 16px 32px;
    }

    .lg-studio-brand {
        font-size: clamp(2.3rem, 14vw, 3.2rem);
    }

    .login-card {
        padding-top: 22px;
    }
}

.lg-kicked {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 143, 143, 0.45);
    background: rgba(255, 80, 80, 0.12);
    text-align: left;
}
.lg-kicked strong {
    display: block;
    margin-bottom: 6px;
    color: #ffc9c9;
}
.lg-kicked p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    line-height: 1.4;
}
.alert-kicked {
    border-color: rgba(255, 143, 143, 0.5) !important;
}

@media (prefers-reduced-motion: reduce) {
    .lg-studio-orb {
        animation: none !important;
    }
}
