/* ============================================
   CSS Variables
   ============================================ */
:root {
    --gold-500: #d4af37;
    --gold-400: #e0c050;
    --gold-600: #c5a030;
    --gold-700: #b09028;
    --gold-800: #8a7020;
    --gold-light: rgba(245,166,35,0.08);
    --gold-glow: rgba(245,166,35,0.25);
    --bg-primary: #ffffff;
    --bg-secondary: #f5f6f8;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e8eaed;
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
}

/* ============================================
   Reset & Base
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ============================================
   Auth Page Layout
   ============================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
}

/* ============================================
   Sidebar (Left)
   ============================================ */
.auth-sidebar {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 100vh;
}

.sidebar-bg {
    position: absolute;
    inset: 0;
}

.sidebar-overlay {
    position: absolute;
    inset: 0;
    background: url(/images/auth_bg_v3.jpg) center/cover no-repeat;
}

    .sidebar-overlay::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgb(189 189 191 / 15%);
    }

.sidebar-content {
    position: relative;
    z-index: 2;
    padding: 60px;
    color: #fff;
    max-width: 520px;
}
.brand-identity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}
.brand-logo {
    width: 48px;
    height: 48px;
}
.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--gold-700);
    text-shadow: none;
}

.sidebar-subtitle {
    font-size: 15px;

    margin-bottom: 48px;
    font-weight: 400;
}

.sidebar-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
  
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s;
}

.feature-item i {
    font-size: 18px;
    color: #F5A623;
    flex-shrink: 0;
}

.feature-item:hover {
    background: rgba(255,255,255,0.10);
    transform: translateX(4px);
}

/* ============================================
   Main (Right)
   ============================================ */
.auth-main {
    width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: var(--bg-primary);
    border-left: 1px solid #f0f2f5;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 420px;
    animation: formFadeIn 0.6s ease;
}

@keyframes formFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Form Header
   ============================================ */
.form-header {
    margin-bottom: 36px;
}

.form-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.form-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
   Auth Form
   ============================================ */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.3s;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 44px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    outline: none;
    transition: all 0.3s;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:hover {
    border-color: #cbd5e1;
}

.form-input:focus {
    background: var(--bg-primary);
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px var(--gold-light);
}

.form-input:focus ~ .input-icon {
    color: var(--gold-500);
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--gold-500);
}

/* ============================================
   Form Options
   ============================================ */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
}

.checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--gold-500);
    cursor: pointer;
}

.forgot-link {
    font-size: 13px;
    color: var(--gold-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: var(--gold-700);
}

/* ============================================
   Submit Button
   ============================================ */
.submit-btn {
    width: 100%;
    height: 48px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #F5A623 0%, #E09515 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px var(--gold-glow);
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--gold-glow);
}

.submit-btn:active {
    transform: translateY(0);
}
.back-link {
    display: block;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    margin-top: 4px;
}

    .back-link:hover {
        color: var(--gold-600);
    }
/* ============================================
   Auth Footer
   ============================================ */
.auth-footer {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.register-link {
    color: var(--gold-600);
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
    transition: color 0.3s;
}

.register-link:hover {
    color: var(--gold-700);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 968px) {
    .auth-page {
        flex-direction: column;
    }

    .auth-sidebar {
        min-height: auto;
        padding: 24px 0;
    }

    .sidebar-content {
        padding: 24px 32px;
        max-width: 100%;
    }

    .sidebar-features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .feature-item {
        padding: 10px 14px;
        font-size: 13px;
        flex: 1 1 auto;
        min-width: 140px;
    }

    .sidebar-subtitle {
        margin-bottom: 20px;
    }

    .brand-title {
        font-size: 28px;
    }

    .auth-main {
        width: 100%;
        padding: 32px 24px;
        border-left: none;
        border-top: 1px solid #f0f2f5;
    }
}

@media (max-width: 480px) {
    .auth-sidebar {
        min-height: auto;
        padding: 16px 0;
    }

    .sidebar-content {
        padding: 16px 20px;
    }

    .brand-identity {
        margin-bottom: 10px;
        gap: 10px;
    }

    .brand-logo {
        width: 36px;
        height: 36px;
    }

    .brand-title {
        font-size: 22px;
    }

    .sidebar-subtitle {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .sidebar-features {
        gap: 8px;
    }

    .feature-item {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 120px;
    }

    .auth-main {
        width: 100%;
        padding: 24px 16px;
    }

    .form-title {
        font-size: 22px;
    }

    .form-subtitle {
        font-size: 13px;
    }

    .form-input,
    .submit-btn {
        height: 46px;
    }

    .auth-form {
        gap: 18px;
    }
}
