/* Auth Page Styles */

.auth-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f0ff 0%, #ede7f6 100%);
    padding: 100px 1rem 2rem;
}

.auth-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(124, 77, 255, 0.15);
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo img {
    height: 56px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.auth-logo h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 1.6rem;
    margin: 0;
}

.auth-logo p {
    color: var(--light-text);
    font-size: 0.9rem;
    margin: 0.25rem 0 0;
}

/* Tabs */
.auth-tabs {
    display: flex;
    border-radius: 8px;
    background: #f3f0ff;
    padding: 4px;
    margin-bottom: 2rem;
    gap: 4px;
}

.tab-btn {
    flex: 1;
    padding: 0.6rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--light-text);
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

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

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

/* Form elements */
.auth-form .form-group {
    margin-bottom: 1.1rem;
}

.auth-form .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.35rem;
}

.auth-form .form-group label .optional {
    color: var(--light-text);
    font-weight: 400;
}

.auth-form .form-group input,
.auth-form .form-group select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
    color: var(--text-color);
    background: white;
}

.auth-form .form-group input:focus,
.auth-form .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.auth-submit-btn {
    width: 100%;
    padding: 0.85rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 0.5rem;
}

.auth-submit-btn:hover {
    background: #6c3fd6;
}

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

.auth-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.auth-message.success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
}

.auth-message.error {
    display: block;
    background: #ffebee;
    color: #c62828;
}

.auth-message.info {
    display: block;
    background: #e8eaf6;
    color: #3949ab;
}

.auth-footer-link {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.88rem;
    color: var(--light-text);
}

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

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

@media (max-width: 500px) {
    .auth-container {
        padding: 1.75rem 1.25rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
