/* ==========================================================================
   Authentication Pages Styles
   ========================================================================== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10rem 5% 5rem;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-alt) 100%);
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 60%);
    top: -100px;
    right: -100px;
    opacity: 0.4;
    border-radius: 50%;
    z-index: 0;
}

.auth-container {
    background: var(--white);
    width: 100%;
    max-width: 500px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    z-index: 1;
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--bg-alt);
}

.auth-tab {
    flex: 1;
    padding: 1.5rem;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    font-weight: 600;
}

.auth-form {
    display: none;
    padding: 2.5rem;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-form p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(106, 27, 154, 0.1);
}

.auth-btn {
    width: 100%;
    margin-top: 1rem;
    cursor: pointer;
}

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-error {
    color: #d32f2f;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 20px;
}

.auth-success {
    color: #388e3c;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 20px;
}

.auth-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.auth-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}