/* =========================
   LOGIN PAGE
   ========================= */
:root {
    --bg: #0b1020;
    --bg-2: #111827;
    --panel: #141b2d;
    --panel-2: #0f172a;
    --text: #e5e7eb;
    --muted: #9aa3b2;
    --accent: #e10600;
    --accent-2: #ffb100;
    --border: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top, #121a30, #0a0f1d 55%, #070b16);
}

body.theme-light {
    --bg: #f3f5fb;
    --bg-2: #ffffff;
    --panel: #ffffff;
    --panel-2: #eef1f8;
    --text: #111827;
    --muted: #5f6b7a;
    --accent: #e10600;
    --accent-2: #c47d00;
    --border: rgba(15, 23, 42, 0.12);
    background: radial-gradient(circle at top, #ffffff, #eef1f8 55%, #e6eaf4);
}

a {
    color: var(--accent-2);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.auth-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(225, 6, 0, 0.08), transparent 40%),
        linear-gradient(300deg, rgba(255, 177, 0, 0.08), transparent 45%);
}

body.theme-light .auth-bg {
    background:
        linear-gradient(120deg, rgba(225, 6, 0, 0.1), transparent 40%),
        linear-gradient(300deg, rgba(255, 177, 0, 0.12), transparent 45%);
}

.glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}

.glow-a {
    background: #e10600;
    top: -120px;
    left: -80px;
}

.glow-b {
    background: #ffb100;
    bottom: -140px;
    right: -100px;
}

.auth-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 56px 28px 80px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
    align-items: start;
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
    grid-column: 1 / -1;
}

.theme-toggle {
    margin-left: auto;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.theme-toggle:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.brand-mark {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #fff;
    font-family: "Archivo Black", "Space Grotesk", sans-serif;
    font-size: 26px;
    letter-spacing: 1px;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(225, 6, 0, 0.35);
}

.brand-text h1 {
    margin: 0 0 4px 0;
    font-size: 30px;
    font-weight: 700;
}

.brand-text p {
    margin: 0;
    color: var(--muted);
}

.auth-card {
    background: linear-gradient(160deg, rgba(20, 27, 45, 0.96), rgba(12, 18, 34, 0.96));
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 24px 60px rgba(5, 8, 16, 0.6);
    animation: rise 0.6s ease forwards;
}

body.theme-light .auth-card {
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.auth-card h2 {
    margin: 0 0 6px 0;
    font-size: 22px;
}

.auth-card .muted {
    margin: 0 0 20px 0;
    color: var(--muted);
}

.field {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--muted);
}

.field-help {
    font-size: 12px;
    color: var(--muted);
}

.field input {
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
    outline: none;
    border-color: rgba(255, 177, 0, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 177, 0, 0.15);
}

#loginBtn,
#signupBtn,
#forgotSubmit {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 12px 14px;
    background: linear-gradient(120deg, var(--accent), #ff4c3b);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(225, 6, 0, 0.35);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

#loginBtn:hover,
#signupBtn:hover,
#forgotSubmit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(225, 6, 0, 0.4);
}

#loginBtn:disabled,
#signupBtn:disabled,
#forgotSubmit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.linklike {
    margin-top: 10px;
    padding: 0;
    border: none;
    background: none;
    color: var(--accent-2);
    cursor: pointer;
    font-size: 13px;
    text-align: left;
}

.linklike:hover {
    text-decoration: underline;
}

.forgot-panel {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: grid;
    gap: 12px;
}

.forgot-panel .muted {
    margin: 0;
}

.helper {
    margin: 14px 0 0 0;
    font-size: 13px;
    color: var(--muted);
}

.form-message {
    display: none;
    margin: 12px 0 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.form-message.success {
    display: block;
    background: rgba(46, 204, 113, 0.14);
    color: #1e8449;
}

.form-message.error {
    display: block;
    background: rgba(231, 76, 60, 0.14);
    color: #ffb6ae;
}

.auth-aside {
    background: rgba(20, 27, 45, 0.5);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 24px;
    animation: rise 0.6s ease 0.1s forwards;
    opacity: 0;
}

body.theme-light .auth-aside {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(15, 23, 42, 0.12);
}

.auth-aside h3 {
    margin: 0 0 14px 0;
    font-size: 18px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
    display: grid;
    gap: 12px;
}

.feature-list li {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--text);
    animation: rise 0.5s ease forwards;
}

.feature-list li:nth-child(1) {
    animation-delay: 0.15s;
}

.feature-list li:nth-child(2) {
    animation-delay: 0.22s;
}

.feature-list li:nth-child(3) {
    animation-delay: 0.3s;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 0 4px rgba(255, 177, 0, 0.15);
}

.track-card {
    background: #0f172a;
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid var(--border);
}

body.theme-light .track-card {
    background: #ffffff;
}

.server-note {
    margin-top: 18px;
    display: grid;
    gap: 10px;
    place-items: center;
    text-align: center;
}

.server-note img {
    width: 100%;
    max-width: 60px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.server-text {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.track-label {
    margin: 0 0 6px 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
}

.track-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.track-meta {
    margin-top: 12px;
    display: grid;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}

.track-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.track-row span:last-child {
    color: var(--text);
}

.page-footer {
    padding: 12px 22px 28px;
    display: flex;
    justify-content: center;
}

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

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-aside {
        order: 3;
    }
}

@media (max-width: 600px) {
    .auth-shell {
        padding: 42px 20px 60px;
    }

    .brand {
        flex-direction: column;
        align-items: flex-start;
    }
}
