* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #03050c;
    --panel: rgba(10, 14, 28, 0.92);
    --border: rgba(255, 255, 255, 0.14);
    --text: #edf3ff;
    --muted: #a5b1cb;
    --field-label: #c3d0ef;
    --input-bg: rgba(255, 255, 255, 0.03);
    --option-bg: #0b1020;
    --option-text: #edf3ff;
    --button-bg: #edf3ff;
    --button-text: #000000;
    --placeholder: #a5b1cb6b;
    --accent: #7ea4ff;
    --error-bg: rgba(242, 133, 133, 0.12);
    --error-border: rgba(242, 133, 133, 0.38);
    --error-text: #ffd9d9;
    --spacing: 8px;
    --text-heavy: 'Darker Grotesque', sans-serif;
    --text-header: 'Syne', sans-serif;
}

.centered-text {
    text-align: center;
}

.centered-text .sub{
    font-size: 3rem;
    color: var(--text);
}

.syne-text {
    font-family: 'Syne', sans-serif !important;
    font-size: 2.35rem;
    font-weight: 700;
    letter-spacing: 0em;
}

body {
    background: radial-gradient(900px 500px at 50% -10%, rgba(35, 70, 155, 0.35), transparent 70%), var(--bg);
    color: var(--text);
    font-family: var(--text-heavy);
    min-height: 100vh;
    overflow-x: hidden;
}

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

.auth-shell {
    min-height: 100vh;
    padding: calc(var(--spacing) * 8) calc(var(--spacing) * 3);
    display: grid;
    grid-template-columns: minmax(0, 60%) minmax(300px, 40%);
    align-items: center;
    gap: calc(var(--spacing) * 4);
    position: relative;
    overflow: hidden;
}

.auth-globe-wrap {
    position: absolute;
    left: 100%;
    top: 100%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    max-width: 820px;
    max-height: 820px;
    border-radius: 50%;
    box-shadow:
        0 -60px 100px rgba(2, 34, 94, 0.45),
        0 -20px 200px rgba(6, 24, 70, 0.75),
        0 0 320px rgba(25, 80, 160, 0.22),
        inset 0 30px 100px rgba(255, 255, 255, 0.14),
        inset 0 -60px 160px rgba(0, 0, 0, 0.65);
    background-color: #000;
    filter: blur(1.2px);
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.landing-globe {
    position: absolute;
    inset: 0;
    display: block;
    border-radius: 50%;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
    pointer-events: auto;
}

.landing-globe:active {
    cursor: grabbing;
}

.landing-globe canvas {
    display: block;
}

.auth-top,
.auth-main {
    position: relative;
    z-index: 1;
}

.auth-main {
    width: min(560px, 100%);
    justify-self: center;
    display: grid;
    gap: calc(var(--spacing) * 2);
}

.auth-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(var(--spacing) * 2);
}
.auth-header h1, .auth-header p {
    text-align: center;
}

.auth-header-search {
    flex: 1;
    max-width: 280px;
}

.auth-header-search input {
    width: 100%;
    border: 1px solid rgba(126, 164, 255, 0.45);
    border-radius: 999px;
    background: rgba(126, 164, 255, 0.08);
    color: var(--text);
    padding: 10px 16px;
    font-family: sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.auth-header-search input::placeholder {
    color: rgba(211, 224, 255, 0.72);
}

.auth-header-search input:focus {
    outline: none;
    border-color: rgba(126, 164, 255, 0.7);
    background: rgba(126, 164, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(126, 164, 255, 0.16);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--spacing) * 1.25);
    font-family: sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
}

.brand img {
    height: 20px;
    width: auto;
    display: block;
}

.ghost-link {
    color: var(--muted);
    font-size: 0.94rem;
    width: fit-content;
    transition: color 0.2s ease;
}

.ghost-link:hover {
    color: var(--text);
}

.auth-card {
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: calc(var(--spacing) * 4);
    display: grid;
    gap: calc(var(--spacing) * 2);
}

.auth-card h1 {
    font-family: sans-serif;
    font-size: clamp(1.55rem, 3.2vw, 2rem);
}

.auth-card p {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.4;
}

.auth-card h3 {
    color: var(--muted);
    font-family: var(--text-heavy);
    font-size: 0.94rem;
    font-weight: 500;
    line-height: 1.45;
}

.auth-form {
    margin-top: calc(var(--spacing) * 1);
    display: grid;
    gap: calc(var(--spacing) * 1.75);
}

.auth-field {
    display: grid;
    gap: calc(var(--spacing) * 0.75);
}

.auth-field label {
    font-size: 0.84rem;
    letter-spacing: 0.09em;
    color: var(--field-label);
}

.auth-field input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--input-bg);
    color: var(--text);
    padding: calc(var(--spacing) * 1.5);
    font-size: 1rem;
    font-family: sans-serif;
    margin-bottom: calc(var(--spacing) * 1);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input::placeholder {
    color: var(--placeholder);
}

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

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(var(--spacing) * 2);
    margin-top: calc(var(--spacing) * -0.5);
    font-size: 0.86rem;
    color: var(--muted);
}

.auth-row label {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--spacing) * 1);
    color: var(--text);
}

.auth-row input[type="checkbox"] {
    width: auto;
    accent-color: var(--accent);
}

.auth-error {
    border: 1px solid var(--error-border);
    background: var(--error-bg);
    color: var(--error-text);
    border-radius: 10px;
    padding: calc(var(--spacing) * 1.25) calc(var(--spacing) * 1.5);
    font-size: 0.92rem;
    line-height: 1.35;
}

.auth-status {
    border: 1px solid rgba(126, 164, 255, 0.45);
    background: rgba(126, 164, 255, 0.18);
    color: #dbe6ff;
    border-radius: 10px;
    padding: calc(var(--spacing) * 1.25) calc(var(--spacing) * 1.5);
    font-size: 0.92rem;
    line-height: 1.35;
}

.auth-button {
    justify-self: center;
    min-width: 168px;
    padding: calc(var(--spacing) * 2) calc(var(--spacing) * 4);
    margin-top: calc(var(--spacing) * 1);
    background: var(--button-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: calc(var(--spacing) * 1);
    color: var(--button-text);
    font-family: var(--text-header);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.auth-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.auth-button:hover::before {
    width: 320px;
    height: 320px;
}

.auth-button:hover {
    transform: scale(1.05);
    color: var(--text);
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.auth-helper {
    text-align: center;
    font-size: 0.96rem;
    color: var(--muted);
}

.auth-helper a {
    color: var(--text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-aside {
    display: grid;
    align-self: stretch;
    align-content: center;
    gap: calc(var(--spacing) * 2);
    padding: calc(var(--spacing) * 4);
    border-left: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.auth-aside h2 {
    font-family: var(--text-header);
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    line-height: 1.05;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.auth-aside ul {
    list-style: none;
    display: grid;
    gap: calc(var(--spacing) * 1.5);
}

.auth-aside li {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.5;
    padding-left: calc(var(--spacing) * 2.5);
    position: relative;
}

.auth-aside li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.58em;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
}

.footer {
    padding: calc(var(--spacing) * 12) calc(var(--spacing) * 12);
    border-top: 1px solid var(--border);
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(200px, 1.6fr) repeat(3, minmax(140px, 1fr));
    margin-bottom: calc(var(--spacing) * 8);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: calc(var(--spacing) * 2);
    font-family: var(--text-header);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    max-width: 240px;
}

.footer-brand-title {
    display: grid;
    gap: calc(var(--spacing) * 2);
    text-transform: uppercase;
}

.footer-brand-title span {
    font-size: 2.5rem;
}

.footer-brand img {
    height: 70px;
    width: auto;
}

.footer-tagline {
    font-family: var(--text-header);
    font-size: 1rem;
    font-weight: 400;
    color: var(--muted);
    max-width: 320px;
}

.footer-col h4 {
    font-family: var(--text-heavy);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: calc(var(--spacing) * 3);
}

.footer-col a {
    display: block;
    color: var(--muted);
    text-decoration: none;
    font-family: var(--text-header);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: calc(var(--spacing) * 2);
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: calc(var(--spacing) * 5);
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-family: var(--text-header);
    font-size: 0.95rem;
    color: var(--muted);
}

.footer-legal {
    display: flex;
    gap: calc(var(--spacing) * 3);
}

.footer-legal a {
    color: var(--muted);
    text-decoration: none;
    font-family: var(--text-header);
    font-size: 0.95rem;
}

.footer-legal a:hover {
    color: var(--text);
}

@media (max-width: 960px) {
    .auth-shell {
        grid-template-columns: 1fr;
        padding: calc(var(--spacing) * 6) calc(var(--spacing) * 3);
    }

    .auth-globe-wrap {
        left: 60%;
        top: 65%;
        width: 80vw;
        height: 80vw;
    }

    .auth-aside {
        border-left: none;
        border-top: 1px solid var(--border);
    }
}

@media (max-width: 600px) {
    .auth-card {
        padding: calc(var(--spacing) * 4);
    }
}

@media (max-width: 520px) {
    .auth-shell {
        padding: calc(var(--spacing) * 5) calc(var(--spacing) * 3);
    }

    .auth-card {
        padding: calc(var(--spacing) * 4);
    }

    .auth-top {
        align-items: center;
    }

    .auth-header-search {
        display: none;
    }

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

    .auth-button {
        width: 100%;
    }

    .footer {
        padding: calc(var(--spacing) * 8) calc(var(--spacing) * 3);
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: calc(var(--spacing) * 3);
        align-items: flex-start;
    }

    .footer-legal {
        flex-wrap: wrap;
    }
}

[data-theme="light"] {
    --bg: #f0f4fc;
    --panel: rgba(220, 232, 255, 0.9);
    --text: #1a2140;
    --muted: #4a5580;
    --field-label: #3f5788;
    --input-bg: rgba(255, 255, 255, 0.94);
    --placeholder: rgba(74, 85, 128, 0.55);
    --border: rgba(0, 20, 80, 0.12);
    --button-bg: #1a2140;
    --button-text: #f5f7ff;
}

[data-theme="light"] body {
    background: radial-gradient(1000px 560px at 50% -10%, #dbe7ff 0%, #edf3ff 45%, var(--bg) 100%);
    color: var(--text);
}

[data-theme="light"] .auth-field input {
    border-color: rgba(0, 20, 80, 0.18);
}

.logo-light {
    display: none;
}

[data-theme="light"] .logo-dark {
    display: none;
}

[data-theme="light"] .logo-light {
    display: block;
}
