/* Auth Pages Styles */

/* Layout */
body {
    background: var(--color-background-alt);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
}

/* Auth Container */
.auth-container {
    background: var(--color-background);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    width: 100%;
    max-width: 400px;
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: var(--color-text-primary);
    font-size: 2em;
    margin-bottom: 10px;
}

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

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text-primary);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--color-slate-50);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: 16px;
    transition: var(--transition-base);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
    color: var(--color-text-tertiary);
}

.form-group.error input {
    border-color: var(--color-danger);
}

/* Error Messages */
.error-message {
    color: var(--color-danger);
    font-size: 0.85em;
    margin-top: 5px;
}

/* Auth Buttons */
.btn-google {
    background: #4285f4;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition-base);
}

.btn-google:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(66, 133, 244, 0.3);
}

/* Divider */
.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
    color: var(--color-text-secondary);
    font-size: 0.9em;
}

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

.divider span {
    background: var(--color-background);
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

/* Auth Links */
.auth-links {
    text-align: center;
    margin-top: 20px;
}

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

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

/* Back Link */
.back-link {
    text-align: center;
    margin-bottom: 20px;
}

.back-link a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9em;
}

.back-link a:hover {
    color: var(--color-primary);
}

/* Loading State */
.loading {
    display: none;
    text-align: center;
    margin-top: 10px;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-slate-200);
    border-top: 2px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Password Requirements */
.password-requirements {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-top: 5px;
}

/* Success/Error Messages */
.success-message {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #51cf66;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
}

.error-message-box {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b6b;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
}

/* Verification Page Specific */
.verification-container {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

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

.logo h1 {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

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

.verification-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.verification-icon.success {
    background: rgba(40, 167, 69, 0.2);
    border: 2px solid #28a745;
    color: #51cf66;
}

.verification-icon.error {
    background: rgba(220, 53, 69, 0.2);
    border: 2px solid #dc3545;
    color: #ff6b6b;
}

h2.success {
    color: #51cf66;
}

h2.error {
    color: #ff6b6b;
}

.message {
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 16px;
}

.countdown {
    color: var(--color-text-tertiary);
    font-size: 14px;
    margin-top: 15px;
}

.btn-secondary {
    background: var(--color-slate-100);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--color-slate-200);
    box-shadow: var(--shadow-sm);
}

/* Invalid Token State */
.invalid-token {
    text-align: center;
    padding: 20px;
}

.invalid-token h2 {
    color: #ff6b6b;
    margin-bottom: 15px;
}

.invalid-token p {
    margin-bottom: 20px;
}

/* Auth Form */
.auth-form h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.auth-form p {
    text-align: center;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Terms Notice */
.terms-notice {
    font-size: 0.8em;
    color: var(--color-text-secondary);
    text-align: center;
    margin-top: 15px;
}

.terms-notice a {
    color: var(--color-primary);
    text-decoration: none;
}

.terms-notice a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-container,
    .verification-container {
        padding: 30px 20px;
        border-radius: var(--radius-md);
    }

    .auth-header h1,
    .logo h1 {
        font-size: 1.5em;
    }

    .auth-form h2 {
        font-size: 20px;
    }

    .verification-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .btn {
        width: 100%;
        margin: 0 0 10px 0;
    }
}
