/* Authentication Pages Styles */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background: var(--card-bg, white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.auth-header h1 {
    margin: 0 0 10px;
    font-size: 28px;
    color: var(--text-color, #333);
}

.auth-header p {
    margin: 0;
    color: var(--text-muted, #6c757d);
    font-size: 14px;
}

.auth-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color, #333);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 8px;
    font-size: 14px;
    background: var(--input-bg, white);
    color: var(--text-color, #333);
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color, #2196F3);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted, #adb5bd);
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-color, #333);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
}

.checkbox-label a {
    color: var(--primary-color, #2196F3);
    text-decoration: none;
}

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

.forgot-link {
    color: var(--primary-color, #2196F3);
    text-decoration: none;
    font-size: 14px;
}

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

.btn-block {
    width: 100%;
}

.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.auth-divider span {
    background: var(--card-bg, white);
    padding: 0 15px;
    color: var(--text-muted, #6c757d);
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color, #dee2e6);
}

.social-auth {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--border-color, #dee2e6);
    background: var(--card-bg, white);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color, #333);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

.google-btn:hover {
    border-color: #4285F4;
    background: rgba(66, 133, 244, 0.05);
}

.apple-btn:hover {
    border-color: #000;
    background: rgba(0, 0, 0, 0.05);
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
}

.auth-footer p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted, #6c757d);
}

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

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

.auth-error {
    margin-top: 20px;
    padding: 12px 15px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    font-size: 14px;
}

.auth-success {
    margin-top: 20px;
    padding: 12px 15px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    font-size: 14px;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: var(--border-color, #dee2e6);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    background: #dc3545;
    transition: width 0.3s, background 0.3s;
}

.strength-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-muted, #6c757d);
}

/* Verification Page */
.verification-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.verification-card {
    width: 100%;
    max-width: 500px;
    background: var(--card-bg, white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    text-align: center;
}

.verification-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #d4edda;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verification-icon svg {
    width: 40px;
    height: 40px;
    fill: #155724;
}

.verification-icon.error {
    background: #f8d7da;
}

.verification-icon.error svg {
    fill: #721c24;
}

/* Reset Password Page */
.reset-form {
    margin-top: 30px;
}

.reset-instructions {
    margin: 20px 0;
    padding: 15px;
    background: var(--info-bg, #d1ecf1);
    color: var(--info-color, #0c5460);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

/* Dark Mode Support */
[data-theme="dark"] .auth-container {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
}

[data-theme="dark"] .auth-card,
[data-theme="dark"] .verification-card {
    background: #1a1a1a;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .form-control {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #fff;
}

[data-theme="dark"] .form-control::placeholder {
    color: #666;
}

[data-theme="dark"] .social-btn {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #fff;
}

[data-theme="dark"] .auth-divider::before {
    background: #3a3a3a;
}

[data-theme="dark"] .auth-divider span {
    background: #1a1a1a;
}

/* Responsive Design */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
    }

    .auth-header h1 {
        font-size: 24px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}