/* ============================================
   LinkWeb - Auth Page Styles
   ============================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.auth-page::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(163, 230, 53, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

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

.auth-logo a {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
}

.auth-logo a span {
    color: var(--primary);
}

.auth-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    animation: fadeInUp 0.6s ease;
}

.auth-tabs {
    display: flex;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    padding: 4px;
    margin-bottom: 32px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
    background: transparent;
}

.auth-tab.active {
    background: white;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.auth-form.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.auth-form .input-group {
    gap: 6px;
}

.auth-form .input-field {
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    background: var(--gray-50);
}

.auth-form .btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    margin-top: 8px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 8px 0;
}

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

.auth-divider span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-dark);
    font-weight: 600;
}

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

.auth-error {
    background: #fef2f2;
    color: var(--error);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 500;
    display: none;
    border: 1px solid #fecaca;
}

.auth-error.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.username-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    margin-top: 4px;
    font-weight: 500;
    min-height: 20px;
}

.username-check.available {
    color: var(--success);
}

.username-check.taken {
    color: var(--error);
}

.password-strength {
    height: 4px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    margin-top: 6px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    width: 0%;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px;
    }
}
