/* ==========================================================================
   Vibora — Identity / Auth styles
   Palette: Dark noir + neon green + neon blue (mobile app parity)
   ========================================================================== */

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

:root {
    /* Brand — dark gradient scale */
    --navy-950: #020305;
    --navy-900: #0A0F1F;
    --navy-800: #071426;
    --navy-700: #0D1B35;
    --navy-600: #152840;
    --navy-500: #1E3A5F;

    /* Accent — neon green */
    --accent: #B6FF00;
    --accent-hover: #9FE000;
    --accent-strong: #7AB800;
    --accent-soft: rgba(182, 255, 0, 0.10);
    --accent-ring: rgba(182, 255, 0, 0.30);

    /* Secondary — neon blue */
    --neon-blue: #00D1FF;
    --neon-blue-soft: rgba(0, 209, 255, 0.10);

    /* Neutral scale */
    --white: #FFFFFF;
    --cream: #0A0F1F;
    --gray-50:  rgba(255, 255, 255, 0.04);
    --gray-100: rgba(255, 255, 255, 0.07);
    --gray-200: rgba(255, 255, 255, 0.10);
    --gray-300: rgba(255, 255, 255, 0.20);
    --gray-400: rgba(255, 255, 255, 0.35);
    --gray-500: rgba(255, 255, 255, 0.55);
    --gray-600: rgba(255, 255, 255, 0.70);
    --gray-700: rgba(255, 255, 255, 0.85);
    --gray-800: rgba(255, 255, 255, 0.92);
    --gray-900: #FFFFFF;

    /* Semantic */
    --brand: #0A0F1F;
    --brand-strong: #020305;
    --bg: #000000;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-muted: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.55);
    --text-subtle: rgba(255, 255, 255, 0.35);

    /* Status — mobile app palette */
    --error: #F56565;
    --error-bg: rgba(245, 101, 101, 0.12);
    --error-border: rgba(245, 101, 101, 0.25);
    --error-text: #C53030;
    --success: #48BB78;
    --success-bg: rgba(72, 187, 120, 0.12);
    --success-border: rgba(72, 187, 120, 0.30);
    --success-text: #276749;
    --warning: #ECC94B;
    --warning-bg: rgba(236, 201, 75, 0.15);
    --warning-border: rgba(236, 201, 75, 0.35);
    --warning-text: #D69E2E;

    /* Podium */
    --vibora-gold: #D69E2E;
    --vibora-silver: #A0AEC0;
    --vibora-bronze: #C05621;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.8), 0 4px 16px rgba(0, 0, 0, 0.5);

    --ring: 0 0 0 3px var(--accent-ring);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display',
                 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

html, body {
    min-height: 100dvh;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv11', 'ss01';
    line-height: 1.5;
    letter-spacing: -0.005em;
}

/* --------------------------------------------------------------------------
   Page shell — split hero + form panel
   -------------------------------------------------------------------------- */

.auth-shell {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .auth-shell {
        grid-template-columns: 1.05fr 1fr;
    }
}

/* Left — brand panel */
.auth-hero {
    display: none;
    position: relative;
    overflow: hidden;
    padding: 3rem 3.5rem;
    background:
        radial-gradient(900px 600px at 110% -10%, rgba(182, 255, 0, 0.07), transparent 55%),
        radial-gradient(700px 500px at -10% 110%, rgba(0, 209, 255, 0.05), transparent 50%),
        linear-gradient(135deg, #0A0F1F 0%, #071426 55%, #020305 100%);
    color: var(--white);
}

@media (min-width: 1024px) {
    .auth-hero {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

.auth-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 30% 40%, black 40%, transparent 80%);
    pointer-events: none;
}

.auth-hero::after {
    content: '';
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(182, 255, 0, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.auth-hero-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 3rem;
}

.auth-hero-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--white);
    text-decoration: none;
}

.auth-hero-brand img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.auth-hero-copy {
    max-width: 460px;
}

.auth-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
}

.auth-hero-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(182, 255, 0, 0.20);
}

.auth-hero-copy h2 {
    font-size: 2.75rem;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    color: var(--white);
}

.auth-hero-copy h2 em {
    font-style: normal;
    color: var(--accent);
}

.auth-hero-copy p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.auth-hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 520px;
    position: relative;
}

.auth-hero-feature {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding-top: 1rem;
}

.auth-hero-feature-k {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.auth-hero-feature-k span {
    color: var(--accent);
}

.auth-hero-feature-v {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.01em;
}

/* Right — form panel */
.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
    background: var(--bg);
    position: relative;
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

/* --------------------------------------------------------------------------
   Card
   -------------------------------------------------------------------------- */

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* --------------------------------------------------------------------------
   Brand / logo block
   -------------------------------------------------------------------------- */

.auth-logo {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-logo-img {
    height: 56px;
    width: auto;
    display: block;
    margin: 0 auto 1rem;
    filter: brightness(0) invert(1);
}

.auth-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.auth-logo p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-top: 0.25rem;
}

@media (min-width: 1024px) {
    .auth-hero + .auth-panel .auth-logo-img {
        height: 48px;
    }
}

/* --------------------------------------------------------------------------
   Language switcher
   -------------------------------------------------------------------------- */

.lang-switcher {
    display: inline-flex;
    justify-content: center;
    gap: 0.125rem;
    margin: 0 auto 1.5rem;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.lang-switcher a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-pill);
    letter-spacing: 0.04em;
    transition: color 150ms ease-out, background-color 150ms ease-out;
}

.lang-switcher a:hover {
    color: var(--text);
}

.lang-switcher a.active {
    color: #000000;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(182, 255, 0, 0.30);
}

/* --------------------------------------------------------------------------
   Alerts
   -------------------------------------------------------------------------- */

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
}

.alert::before {
    content: '';
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.alert-error {
    background: var(--error-bg);
    color: var(--error);
    border-color: var(--error-border);
}

.alert-error::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23F56565'><path fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm-.75-11.5a.75.75 0 011.5 0v4a.75.75 0 01-1.5 0v-4zm.75 8a1 1 0 100-2 1 1 0 000 2z' clip-rule='evenodd'/></svg>");
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border-color: var(--success-border);
}

.alert-success::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2348BB78'><path fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z' clip-rule='evenodd'/></svg>");
}

/* --------------------------------------------------------------------------
   Result (email-verified) block
   -------------------------------------------------------------------------- */

.result-block {
    text-align: center;
    padding: 0.5rem 0 0.25rem;
}

.result-block h2 {
    margin: 1rem 0 0.5rem;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.result-block p {
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
}

.result-success .result-icon {
    background: var(--success-bg);
    color: var(--success);
    box-shadow: 0 0 0 8px rgba(72, 187, 120, 0.06);
}

.result-error .result-icon {
    background: var(--error-bg);
    color: var(--error);
    box-shadow: 0 0 0 8px rgba(245, 101, 101, 0.06);
}

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4375rem;
    letter-spacing: -0.005em;
}

.form-group input {
    width: 100%;
    height: 44px;
    padding: 0 0.875rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
    outline: none;
}

.form-group input:hover {
    border-color: var(--gray-400);
}

.form-group input:focus,
.form-group input:focus-visible {
    border-color: var(--accent);
    box-shadow: var(--ring);
}

.form-group input::placeholder {
    color: var(--text-subtle);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 46px;
    padding: 0 1rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: -0.005em;
    cursor: pointer;
    transition: background-color 150ms ease-out, border-color 150ms ease-out,
                box-shadow 150ms ease-out, transform 100ms ease-out;
    text-decoration: none;
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--accent);
    color: #000000;
    box-shadow: 0 0 20px rgba(182, 255, 0, 0.20),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 28px rgba(182, 255, 0, 0.30),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:active {
    background: var(--accent-strong);
    box-shadow: none;
}

.btn-accent {
    background: var(--neon-blue);
    color: #000000;
    box-shadow: 0 0 20px rgba(0, 209, 255, 0.20),
                inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn-accent:hover {
    background: #00BAEB;
    box-shadow: 0 0 28px rgba(0, 209, 255, 0.30),
                inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn-accent:active {
    background: #009EC8;
    box-shadow: none;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin: 1.5rem 0;
    color: var(--text-subtle);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Social buttons */
.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 44px;
    padding: 0 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 150ms ease-out, border-color 150ms ease-out,
                box-shadow 150ms ease-out;
    text-decoration: none;
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--gray-400);
    box-shadow: var(--shadow-sm);
}

.btn-social:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--ring);
}

.btn-social svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Footer link row */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.25rem;
}

.auth-footer a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Consent section
   -------------------------------------------------------------------------- */

.consent-section {
    margin: 1.25rem 0 1.5rem;
    padding: 1.125rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.consent-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.125rem;
}

.consent-group {
    border-top: 1px solid var(--border);
    padding-top: 0.875rem;
}

.consent-group:first-of-type {
    border-top: none;
    padding-top: 0;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.consent-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--accent);
    cursor: pointer;
    border-radius: 4px;
}

.consent-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.consent-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}

.consent-optional {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-subtle);
}

.consent-description {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.consent-read-more {
    font-size: 0.8125rem;
    color: var(--accent);
    text-decoration: none;
    margin-top: 0.125rem;
    font-weight: 500;
}

.consent-read-more:hover {
    color: var(--accent-hover);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Utility — forgot password link row
   -------------------------------------------------------------------------- */

.field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4375rem;
}

.field-row a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
}

.field-row a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
    .auth-panel {
        padding: 2rem 1rem;
    }

    .auth-card {
        padding: 1.75rem 1.375rem;
        border-radius: var(--radius-lg);
    }

    .auth-logo-img {
        height: 48px;
        margin-bottom: 0.75rem;
    }

    .auth-logo h1 {
        font-size: 1.375rem;
    }

    .social-buttons {
        grid-template-columns: 1fr;
    }

    .auth-hero-copy h2 {
        font-size: 2rem;
    }
}

/* --------------------------------------------------------------------------
   Standalone layout (no hero panel)
   -------------------------------------------------------------------------- */

.auth-standalone {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(182, 255, 0, 0.05), transparent 60%),
        radial-gradient(700px 450px at -10% 110%, rgba(0, 209, 255, 0.04), transparent 55%),
        var(--bg);
}

.auth-standalone .auth-container {
    margin: 0 auto;
}

.auth-standalone .auth-card {
    box-shadow: var(--shadow-lg);
}
