:root {
    --bg: #070b18;
    --panel: rgba(255,255,255,.075);
    --panel2: rgba(255,255,255,.12);
    --text: #f8fafc;
    --muted: #a8b3cf;
    --brand: #6d5dfc;
    --brand2: #00d4ff;
    --accent: #ff9800;
    --border: rgba(255,255,255,.14);
    --shadow: 0 30px 90px rgba(0,0,0,.38);
}

* {
    box-sizing: border-box;
}

body.auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(0,212,255,.18), transparent 35%),
        radial-gradient(circle at bottom right, rgba(255,152,0,.14), transparent 32%),
        linear-gradient(135deg, #050816, #0b1225 55%, #07111f);
}

a {
    color: inherit;
    text-decoration: none;
}

.auth-shell {
    width: min(1120px, 92%);
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 32px;
    align-items: center;
    padding: 50px 0;
}

.auth-brand-panel,
.auth-card {
    border: 1px solid var(--border);
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(0,212,255,.12), transparent 35%),
        rgba(255,255,255,.065);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.auth-brand-panel {
    min-height: 620px;
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    font-weight: 900;
    letter-spacing: -.4px;
}

.auth-logo img {
    width: 55px;
    height: auto;

}

.auth-eyebrow {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 8px 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--brand2);
    background: rgba(255,255,255,.06);
    font-weight: 900;
    font-size: .84rem;
}

.auth-brand-panel h1 {
    margin: 0 0 18px;
    max-width: 620px;
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    line-height: .95;
    letter-spacing: -2px;
}

.auth-brand-panel p {
    max-width: 620px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.auth-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.auth-features span {
    padding: 12px 15px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.055);
    color: white;
    font-size: .92rem;
    font-weight: 700;
}

.auth-card {
    padding: 32px;
}

.auth-card-head {
    margin-bottom: 24px;
}

.auth-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 17px;
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    box-shadow: 0 18px 45px rgba(0,212,255,.22);
    font-size: 1.45rem;
}

.auth-card h2 {
    margin: 0 0 8px;
    font-size: 2rem;
}

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

.auth-card label {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--muted);
    font-weight: 800;
}

.auth-card input {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(7,11,24,.55);
    color: white;
    outline: none;
}

.auth-card input:focus {
    border-color: rgba(0,212,255,.45);
    box-shadow: 0 0 0 4px rgba(0,212,255,.08);
}

.auth-button {
    width: 100%;
    height: 56px;
    margin-top: 6px;
    border: 0;
    border-radius: 17px;
    background: linear-gradient(135deg, var(--brand), var(--brand2));
    color: white;
    font-weight: 900;
    cursor: pointer;
    transition: .25s ease;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(0,212,255,.24);
}

.auth-error,
.auth-warning {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 700;
}

.auth-error {
    border: 1px solid rgba(255,100,100,.28);
    background: rgba(255,100,100,.09);
    color: #ffd0d0;
}

.auth-warning {
    border: 1px solid rgba(255,152,0,.28);
    background: rgba(255,152,0,.09);
    color: #ffe2b8;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 22px;
    color: var(--muted);
    font-size: .92rem;
}

.auth-links a:hover {
    color: white;
}

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

    .auth-brand-panel {
        min-height: auto;
        gap: 50px;
    }
}

@media (max-width: 520px) {
    .auth-brand-panel,
    .auth-card {
        padding: 24px;
        border-radius: 26px;
    }

    .auth-links {
        flex-direction: column;
    }
}