/**
 * ByteVerify Authentication Pages Stylesheet (auth.css)
 * Modern split-screen layout with ambient glow, brand showcase, and floating card design.
 */

:root {
    --auth-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --border-soft: #e2e8f0;
    --accent-gold: #f59e0b;
    --brand-blue: #0284c7;
    --brand-blue-hover: #0369a1;
    --badge-bg: rgba(245, 158, 11, 0.08);
    --badge-border: rgba(245, 158, 11, 0.2);
    --card-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08), 0 1px 3px 0 rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] {
    --auth-bg: #090d16;
    --card-bg: #111827;
    --text-heading: #f8fafc;
    --text-body: #cbd5e1;
    --text-muted: #94a3b8;
    --border-soft: #1f2937;
    --badge-bg: rgba(245, 158, 11, 0.12);
    --badge-border: rgba(245, 158, 11, 0.25);
    --card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(circle at 8% 20%, rgba(245, 158, 11, 0.09) 0%, transparent 45%),
        radial-gradient(circle at 92% 75%, rgba(2, 132, 199, 0.11) 0%, transparent 50%),
        var(--auth-bg);
    color: var(--text-body);
    padding: 32px 20px;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Glow Spheres */
.ambient-glow {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(80px);
}
.glow-left {
    top: 5%;
    left: -5%;
    width: 420px;
    height: 420px;
    background: rgba(245, 158, 11, 0.06);
}
.glow-right {
    bottom: 5%;
    right: -5%;
    width: 480px;
    height: 480px;
    background: rgba(2, 132, 199, 0.08);
}

/* Main Split Layout Container */
.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1060px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    margin: auto;
}

.auth-container.auth-login-grid {
    grid-template-columns: 1.05fr 1fr;
}

.auth-container.auth-register-grid {
    grid-template-columns: 1fr 1.08fr;
}

/* Single column for Forgot/Recovery */
.auth-wrapper-single {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    margin: auto;
}

/* --- Left Column: Brand Showcase --- */
.brand-showcase {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
}

.brand-logo-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    background: var(--card-bg);
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    width: fit-content;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.brand-logo-card img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.brand-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-logo-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}

.brand-logo-name span {
    color: var(--brand-blue);
}

.brand-logo-tagline {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 3px;
}

.showcase-headline {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.18;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.accent-bar {
    width: 52px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 3px;
    margin-bottom: 18px;
}

.showcase-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 440px;
    margin-bottom: 32px;
}

/* Feature Value Props */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    color: var(--accent-gold);
    font-weight: 700;
}

.feature-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 3px;
}

.feature-content p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.45;
}

/* --- Right Column: Auth Card --- */
.auth-card-wrapper {
    position: relative;
}

.auth-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-soft);
    position: relative;
    overflow: hidden;
    padding: 38px 36px 32px 36px;
}

/* Card Top Multi-color Accent Bar */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold) 0%, #38bdf8 55%, var(--brand-blue) 100%);
}

.card-eyebrow {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.card-eyebrow span.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-blue);
    display: inline-block;
}

.card-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.card-subtitle {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.card-register-link {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-soft);
}

.card-register-link a {
    color: var(--brand-blue);
    text-decoration: underline;
    font-weight: 600;
    margin-left: 3px;
    transition: color 0.2s;
}

.card-register-link a:hover {
    color: var(--brand-blue-hover);
}

/* Form Controls */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

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

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.forgot-link {
    font-size: 12.5px;
    color: var(--brand-blue);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: var(--brand-blue-hover);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input {
    width: 100%;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--text-heading);
    outline: none;
    transition: all 0.2s ease;
}

[data-theme="dark"] .auth-input {
    background: rgba(17, 24, 39, 0.8);
}

.auth-input:focus {
    border-color: var(--brand-blue);
    background: var(--card-bg);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.auth-input::placeholder {
    color: #94a3b8;
    font-size: 13.5px;
}

.password-input {
    padding-right: 68px;
}

.toggle-password-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: color 0.2s;
    user-select: none;
}

.toggle-password-btn:hover {
    color: var(--text-heading);
}

/* Checkboxes */
.remember-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    cursor: pointer;
    user-select: none;
}

.remember-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    accent-color: var(--brand-blue);
    cursor: pointer;
}

.remember-text {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.terms-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    user-select: none;
}

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

.terms-text {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.45;
}

.terms-text a {
    color: var(--brand-blue);
    text-decoration: underline;
}

/* Submit Button */
.btn-submit-secure {
    width: 100%;
    background: var(--brand-blue);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 13px 20px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
    transition: all 0.2s ease;
}

.btn-submit-secure:hover {
    background: var(--brand-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.38);
}

.btn-submit-secure:active {
    transform: translateY(0);
}

.btn-submit-secure:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Trust Badge Footer */
.card-trust-badge {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 11.5px;
    color: var(--text-muted);
    text-align: center;
}

.card-trust-badge svg {
    flex-shrink: 0;
    color: #10b981;
}

.back-link-row {
    margin-top: 24px;
    text-align: center;
}

.back-link-row a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link-row a:hover {
    color: var(--brand-blue);
}

/* Responsive Breakpoints */
@media (max-width: 920px) {
    .auth-container {
        grid-template-columns: 1fr !important;
        gap: 36px;
        max-width: 490px;
    }

    .brand-showcase {
        text-align: center;
        align-items: center;
    }

    .showcase-desc {
        margin: 0 auto 24px auto;
    }

    .accent-bar {
        margin: 0 auto 16px auto;
    }

    .features-list {
        display: none;
    }

    .showcase-headline {
        font-size: 32px;
    }

    .auth-card {
        padding: 30px 24px;
    }
}

@media (max-width: 480px) {
    body.auth-body {
        padding: 16px 12px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .auth-card {
        padding: 26px 18px;
        border-radius: 16px;
    }
    .showcase-headline {
        font-size: 26px;
    }
}

