/* ============================================
   L2 IMPURE - Auth Pages (Login/Register)
   ============================================ */

/* === Page Layout === */
.auth-page {
    min-height: 100vh;
    display: flex;
}

/* === Left Side: Form === */
.auth-form-side {
    width: 50%;
    min-height: 100vh;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 60px;
}

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

/* Logo */
.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.auth-logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

/* Title */
.auth-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 30px;
}

/* Google Button */
.btn-google {
    width: 100%;
    padding: 14px 20px;
    background: var(--accent-primary);
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 30px;
}

.btn-google:hover {
    background: var(--accent-primary-hover);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

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

.auth-divider span {
    padding: 0 15px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Auth Tabs (Login page) */
.auth-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.auth-tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.3s;
}

.auth-tab:hover {
    color: var(--text-primary);
}

.auth-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    margin-bottom: 0;
}

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

.form-label-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

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

.form-link {
    font-size: 13px;
    color: var(--accent-primary);
}

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

/* Input with icon */
.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
}

.input-icon:hover {
    color: var(--text-primary);
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

.checkbox-label {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--accent-primary);
}

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

/* reCAPTCHA placeholder */
.recaptcha-placeholder {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.recaptcha-checkbox {
    width: 28px;
    height: 28px;
    background: white;
    border: 2px solid #c1c1c1;
    border-radius: 3px;
    cursor: pointer;
}

.recaptcha-text {
    font-size: 14px;
    color: #555;
}

.recaptcha-logo {
    margin-left: auto;
    font-size: 10px;
    color: #999;
    text-align: right;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px 20px;
    background: var(--accent-primary);
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background: var(--accent-primary-hover);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-primary);
    font-weight: 500;
}

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

/* Page Footer */
.auth-page-footer {
    margin-top: auto;
    padding-top: 40px;
    text-align: center;
}

.auth-page-footer p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.auth-page-footer a {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0 10px;
}

.auth-page-footer a:hover {
    color: var(--accent-primary);
}

/* === Right Side: Image === */
.auth-image-side {
    width: 50%;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a24 0%, #0a0a0f 100%);
    position: relative;
}

.auth-image-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--bg-secondary) 0%, transparent 20%);
}

.auth-image-side img,
.auth-image-side video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-image-overlay {
    position: absolute;
    bottom: 30px;
    right: 30px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .auth-form-side {
        width: 100%;
        padding: 40px 30px;
    }
    
    .auth-image-side {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-form-side {
        padding: 30px 20px;
    }
    
    .auth-logo {
        font-size: 28px;
    }
    
    .auth-title {
        font-size: 20px;
    }
}
