/* ==========================================
   Auth Pages Styles - Cyber Blue Theme
   純黑 × 科技藍 × 極簡科技
   ========================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--color-background);
}

.glow,
.glow-1,
.glow-2,
.grid-pattern {
    display: none;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1100px;
    min-height: 650px;
    margin: 40px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

/* Left Side - Branding */
.auth-brand {
    background: var(--color-card-alt);
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--color-border);
}

.auth-brand .logo {
    margin-bottom: var(--space-2xl);
}

.brand-content {
    flex: 1;
}

.brand-content h1 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.brand-content>p {
    color: var(--color-text-secondary);
    font-size: 15px;
    margin-bottom: var(--space-xl);
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.brand-feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 14px;
    color: var(--color-text-secondary);
}

.feature-check {
    width: 24px;
    height: 24px;
    background: rgba(56, 189, 248, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.brand-testimonial {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-top: auto;
}

.brand-testimonial>p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.6;
    font-size: 14px;
}

.brand-testimonial .testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.brand-testimonial .author-avatar {
    width: 40px;
    height: 40px;
    background: rgba(56, 189, 248, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-primary);
}

.brand-testimonial .author-info {
    display: flex;
    flex-direction: column;
}

.brand-testimonial .author-name {
    font-size: 14px;
    font-weight: 500;
}

.brand-testimonial .author-title {
    font-size: 12px;
    color: var(--color-text-muted);
}

.brand-stats {
    display: flex;
    gap: var(--space-xl);
    margin-top: auto;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item .stat-value {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-accent);
}

.stat-item .stat-label {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Right Side - Form */
.auth-form-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    background: var(--color-background);
}

.auth-form-wrapper {
    width: 100%;
    max-width: 380px;
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-header h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.auth-header p {
    color: var(--color-text-secondary);
    font-size: 14px;
}

.auth-header a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    transition: opacity var(--transition-fast);
}

.auth-header a:hover {
    opacity: 0.8;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
}

.form-group label .optional {
    color: var(--color-text-muted);
    font-weight: 400;
}

.forgot-link {
    color: var(--color-accent);
    font-size: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: opacity var(--transition-fast);
}

.forgot-link:hover {
    opacity: 0.8;
}

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

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--color-text-muted);
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px;
    padding-left: 44px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 14px;
    font-family: var(--font-body);
    transition: border-color var(--transition-normal);
}

.input-wrapper input:not([type="email"]):not([type="password"]):not([type="text"]) {
    padding-left: 16px;
}

.form-row .input-wrapper input {
    padding-left: 16px;
}

.input-wrapper input::placeholder {
    color: var(--color-text-muted);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition-fast);
}

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

/* Password Strength */
.password-strength {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-xs);
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: var(--color-text-muted);
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
}

.strength-fill.weak {
    width: 33%;
    background: var(--color-error);
}

.strength-fill.medium {
    width: 66%;
    background: var(--color-warning);
}

.strength-fill.strong {
    width: 100%;
    background: var(--color-success);
}

.strength-text {
    font-size: 11px;
    color: var(--color-text-muted);
}

/* Checkbox */
.checkbox-group {
    flex-direction: row;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.checkbox-label input {
    display: none;
}

.checkmark {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    margin-top: 1px;
}

.checkbox-label input:checked+.checkmark {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.checkbox-label input:checked+.checkmark::after {
    content: '✓';
    color: #000;
    font-size: 11px;
    font-weight: 700;
}

.checkbox-label a {
    color: var(--color-accent);
    text-decoration: none;
}

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

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

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

.divider span {
    font-size: 12px;
    color: var(--color-text-muted);
    white-space: nowrap;
}

/* Social Login */
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 16px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.social-btn:hover {
    border-color: var(--color-primary);
    background: rgba(56, 189, 248, 0.1);
}

/* Auth Footer */
.auth-footer {
    margin-top: var(--space-lg);
    text-align: center;
}

.auth-footer p {
    font-size: 11px;
    color: var(--color-text-muted);
}

.auth-footer a {
    color: var(--color-text-secondary);
    text-decoration: none;
}

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

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin: var(--space-md);
    }

    .auth-brand {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-container {
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
        border: none;
    }

    .auth-form-container {
        padding: var(--space-lg);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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