/* Auth Pages Styles */

.auth-page {
    min-height: 100vh;
    background: var(--bg-color);
}

/* Firebase Warning */
.firebase-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: var(--radius-md);
    color: #92400e;
    font-size: 14px;
    margin-bottom: 24px;
}

.firebase-warning i {
    font-size: 20px;
}

.firebase-warning code {
    background: rgba(0,0,0,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* Left Panel - Branding */
.auth-branding {
    background: linear-gradient(135deg, #1a1816 0%, #2a2826 100%);
    color: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.auth-tagline h1 {
    font-size: 48px;
    color: white;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.auth-tagline p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 400px;
}

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

.auth-features .feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.auth-features .feature-item i {
    font-size: 20px;
    color: #8ECD71;
}

/* Right Panel - Form */
.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: var(--bg-white);
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background: var(--bg-color);
    padding: 6px;
    border-radius: var(--radius-md);
}

.auth-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

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

.auth-tab.active {
    background: var(--bg-white);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Registration Steps */
.register-step {
    display: none;
}

.register-step.active {
    display: block;
}

/* Success Badge */
.success-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.success-badge i {
    font-size: 18px;
}

/* Input Hint */
.input-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.auth-header {
    margin-bottom: 40px;
}

.auth-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

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

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

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

.input-wrapper i:first-child {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
    font-size: 20px;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 48px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: var(--font-body);
    transition: all 0.2s ease;
    background: var(--bg-color);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--text-primary);
    background: var(--bg-white);
}

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

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

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

/* Error Message */
.error-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    color: #dc2626;
    font-size: 14px;
}

.error-message.hidden {
    display: none;
}

.error-message i {
    font-size: 18px;
}

/* Button Styles */
.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-primary.btn-full {
    background: var(--text-primary);
    color: var(--bg-white);
    border: none;
}

.btn-primary.btn-full:hover {
    background: #333;
    transform: translateY(-2px);
}

.btn-primary.btn-full:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
}

/* Spinner Animation */
.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Auth Footer */
.auth-footer {
    margin-top: 32px;
    text-align: center;
}

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

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

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

/* Responsive */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-branding {
        display: none;
    }
    
    .auth-form-panel {
        padding: 40px 24px;
    }
}

@media (max-width: 480px) {
    .auth-header h2 {
        font-size: 24px;
    }
    
    .input-wrapper input {
        padding: 14px 44px;
        font-size: 16px;
    }
}
