/* ============================================
   Login / Sign Up Page Styles
   ============================================ */

.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) 0;
    background-color: var(--bg-primary);
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

/* Left Side - Forms */
.auth-form-wrapper {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Tabs */
.auth-tabs {
    display: flex;
    gap: var(--spacing-xs);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-sm);
}

.auth-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    padding: var(--spacing-xs) var(--spacing-sm);
    transition: color var(--transition-fast);
    position: relative;
}

.auth-tab:hover {
    color: var(--accent-ice);
}

.auth-tab-active {
    color: var(--accent-ice);
    border-bottom: 2px solid var(--accent-ice);
}

.auth-tab-active::after {
    content: '';
    display: none;
}

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

.auth-form-container.hidden {
    display: none;
}

.auth-form-wrapper-centered {
    justify-content: center;
    align-items: center;
}

.auth-form-header {
    text-align: left;
    margin-bottom: var(--spacing-xs);
}

.auth-form-header-centered {
    text-align: center;
}

.btn-back {
    background: none;
    border: none;
    color: var(--accent-ice);
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    margin-bottom: var(--spacing-sm);
    transition: color var(--transition-fast);
}

.btn-back:hover {
    color: var(--text-secondary);
}

.auth-title {
    font-family: var(--font-headings);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-xs) 0;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* OAuth Buttons */
.btn-oauth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    font-weight: 500;
    font-size: 15px;
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.btn-oauth:hover {
    background-color: rgba(162, 207, 255, 0.05);
    border-color: var(--accent-ice);
    color: var(--accent-ice);
}

.btn-google {
    color: var(--text-secondary);
}

.btn-google:hover {
    color: var(--text-primary);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: 13px;
    margin: var(--spacing-md) 0;
}

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

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

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-label-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.form-input {
    padding: 12px 14px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 15px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

.form-input:focus {
    outline: none;
    border-color: var(--accent-ice);
    box-shadow: 0 0 0 3px rgba(162, 207, 255, 0.1);
}

.form-input.error {
    border-color: #ff6b6b;
}

.form-error {
    font-size: 13px;
    color: #ff6b6b;
    display: none;
}

.form-error.visible {
    display: block;
}

.form-error-general {
    background-color: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    color: #ff6b6b;
    font-size: 14px;
    text-align: center;
    display: none;
}

.form-error-general.visible {
    display: block;
}

.form-success {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    color: #4caf50;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.form-success.hidden {
    display: none;
}

.success-title {
    font-weight: 600;
    margin: 0 0 4px 0;
}

.success-message {
    font-size: 14px;
    margin: 0;
}

.form-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    margin-top: -4px;
}

.form-link {
    background: none;
    border: none;
    color: var(--accent-ice);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
    transition: color var(--transition-fast);
}

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

/* Checkbox */
.form-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--accent-ice);
}

.checkbox-label {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    margin: 0;
    line-height: 1.5;
}

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

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

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

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

/* Right Side - Info Panel */
.auth-info-panel {
    background: linear-gradient(135deg, rgba(162, 207, 255, 0.05) 0%, rgba(162, 207, 255, 0.02) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.auth-info-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.auth-info-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(162, 207, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--accent-ice);
}

.auth-info-title {
    font-family: var(--font-headings);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.auth-info-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.auth-info-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.auth-info-features svg {
    color: var(--accent-ice);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Verify Email Section */
#verify-email-section {
    display: flex;
}

#verify-email-section.hidden {
    display: none;
}

.verify-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: var(--radius-lg);
    color: #4caf50;
}

.verify-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.verify-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin: var(--spacing-md) 0 0 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .auth-info-panel {
        display: none;
    }

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

@media (max-width: 768px) {
    .auth-section {
        padding: var(--spacing-md);
        min-height: auto;
    }

    .auth-form-wrapper {
        padding: 0;
        gap: var(--spacing-sm);
    }

    .auth-tabs {
        padding-bottom: var(--spacing-sm);
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .auth-subtitle {
        font-size: 14px;
    }

    .form-label {
        font-size: 13px;
    }

    .form-input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .btn-oauth {
        padding: 10px 14px;
        font-size: 14px;
    }

    .checkbox-label {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .auth-tabs {
        gap: 0;
        padding-bottom: 0;
    }

    .auth-tab {
        flex: 1;
        text-align: center;
        padding: var(--spacing-sm);
        border-bottom: 2px solid var(--border-color);
    }

    .auth-tab-active {
        border-bottom: 2px solid var(--accent-ice);
    }

    .auth-tab-active::after {
        display: none;
    }

    .auth-title {
        font-size: 1.375rem;
    }

    .form-input {
        padding: 10px 12px;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }
}