:root {
    --auth-bg: #0b1120;
    --auth-card-bg: #131c31;
    --auth-border: rgba(255,255,255,0.06);
    --auth-text: #e2e8f0;
    --auth-text-muted: #64748b;
    --auth-input-bg: rgba(255,255,255,0.04);
    --auth-input-border: rgba(255,255,255,0.08);
    --auth-input-text: #e2e8f0;
    --auth-placeholder: rgba(255,255,255,0.2);
    --auth-orange: #ff7f50;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    background: var(--auth-bg);
    position: relative;
    overflow: hidden;
}

.auth-bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.auth-bg-glow {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 800px 500px at 15% 40%, rgba(255,127,80,0.06), transparent 60%),
        radial-gradient(ellipse 600px 600px at 80% 70%, rgba(52,211,153,0.03), transparent 60%);
    pointer-events: none;
}

/* ===== TWO-COLUMN LAYOUT ===== */
.auth-split {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Left Brand Panel */
.auth-brand {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 700px 500px at 30% 50%, rgba(255,127,80,0.04), transparent 70%);
}

.auth-brand-bg {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ff7f50' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 420px;
}

.auth-brand-logo {
    margin-bottom: 36px;
}

.auth-brand-logo img {
    height: 44px;
    filter: brightness(1.2);
}

.auth-brand-illustration {
    width: 280px;
    height: 280px;
    margin: 0 auto 40px;
    position: relative;
}

.auth-brand-illustration svg {
    width: 100%;
    height: 100%;
}

.auth-brand-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.auth-brand-title span {
    background: linear-gradient(135deg, #ff7f50, #ffb088);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-brand-desc {
    color: var(--auth-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

.auth-brand-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 36px;
    text-align: left;
}

.auth-brand-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--auth-text-muted);
    font-size: 0.85rem;
}

.auth-brand-feature i {
    color: #34d399;
    font-size: 0.8rem;
}

/* Right Form Panel */
.auth-form-panel {
    width: 520px;
    min-width: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    background: var(--auth-card-bg);
    border-left: 1px solid var(--auth-border);
    position: relative;
}

.auth-form-panel-inner {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.auth-form-header {
    margin-bottom: 28px;
}

.auth-form-header .auth-logo {
    display: none;
}

.auth-form-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.auth-form-header p {
    color: var(--auth-text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--auth-text-muted);
}

.auth-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--auth-input-bg);
    border: 1px solid var(--auth-input-border);
    border-radius: 12px;
    padding: 0 16px;
    transition: 0.3s;
}

.auth-input-wrapper:focus-within {
    border-color: rgba(255,127,80,0.3);
    box-shadow: 0 0 0 3px rgba(255,127,80,0.06);
}

.auth-input-wrapper i {
    color: var(--auth-text-muted);
    font-size: 0.85rem;
}

.auth-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--auth-input-text);
    padding: 13px 0;
    font-size: 0.88rem;
}

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

.auth-pw-toggle {
    background: none;
    border: none;
    color: var(--auth-text-muted);
    cursor: pointer;
    padding: 4px;
    transition: 0.25s;
}

.auth-pw-toggle:hover {
    color: var(--auth-orange);
}

.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--auth-text-muted);
}

.auth-checkbox input[type="checkbox"] {
    accent-color: var(--auth-orange);
    width: 16px;
    height: 16px;
}

.auth-link {
    font-size: 0.82rem;
    color: var(--auth-orange);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--auth-orange), #e06530);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(255,127,80,0.2);
}

.auth-btn:hover {
    box-shadow: 0 8px 30px rgba(255,127,80,0.35);
    transform: translateY(-2px);
}

.auth-footer-text {
    text-align: center;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--auth-border);
    color: var(--auth-text-muted);
    font-size: 0.83rem;
}

.auth-footer-text a {
    color: var(--auth-orange);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

.auth-checkbox-terms {
    gap: 10px;
    line-height: 1.5;
}

.auth-checkbox-terms a {
    color: var(--auth-orange);
    text-decoration: none;
}

.auth-checkbox-terms a:hover {
    text-decoration: underline;
}

.auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.15);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #f87171;
    font-size: 0.85rem;
}

.auth-alert i {
    font-size: 1rem;
}

.auth-input-error {
    border-color: rgba(239,68,68,0.3) !important;
}

.auth-input-error:focus-within {
    box-shadow: 0 0 0 3px rgba(239,68,68,0.08) !important;
}

.auth-field-error {
    font-size: 0.75rem;
    color: #f87171;
    margin-top: 2px;
}

.auth-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    background: rgba(52,211,153,0.08);
    border: 1px solid rgba(52,211,153,0.15);
    border-radius: 16px;
    padding: 32px 24px;
    margin-bottom: 0;
    color: #34d399;
}

.auth-success i {
    font-size: 2.5rem;
}

.auth-success p {
    color: var(--auth-text-muted);
    font-size: 0.85rem;
    margin: 0;
    max-width: 320px;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--auth-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 24px;
    transition: 0.3s;
}

.auth-back-link:hover {
    color: var(--auth-orange);
}

@media (max-width: 1023px) {
    .auth-brand {
        display: none;
    }
    .auth-form-panel {
        width: 100%;
        min-width: auto;
        border-left: none;
        padding: 40px 24px;
    }
    .auth-form-panel-inner {
        max-width: 400px;
    }
    .auth-form-header .auth-logo {
        display: block;
        text-align: center;
        margin-bottom: 24px;
    }
    .auth-form-header .auth-logo img {
        height: 36px;
        filter: brightness(1.2);
    }
    .auth-form-header {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .auth-form-panel {
        padding: 28px 16px;
    }
}
