/* Authentication Pages Styles */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.auth-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.auth-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.auth-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

.auth-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.auth-glow-1 {
    width: 500px;
    height: 500px;
    background: rgba(99, 102, 241, 0.2);
    top: -200px;
    right: -100px;
}

.auth-glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(139, 92, 246, 0.15);
    bottom: -150px;
    left: -100px;
}

.auth-card {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-xl);
}

.auth-card.register-card {
    max-width: 500px;
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.auth-logo i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.auth-header p {
    color: var(--gray-500);
}

.auth-form {
    margin-bottom: var(--space-lg);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.forgot-link {
    font-size: 0.875rem;
    color: var(--primary-light);
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-toggle-password {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: var(--space-sm);
}

.btn-toggle-password:hover {
    color: var(--white);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: var(--space-xl) 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    position: relative;
    background: var(--dark-card);
    padding: 0 var(--space-md);
    color: var(--gray-500);
    font-size: 0.875rem;
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--white);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-google:hover {
    border-color: #ea4335;
    color: #ea4335;
}

.btn-github:hover {
    border-color: #fff;
}

.auth-footer {
    text-align: center;
    color: var(--gray-500);
}

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

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

/* Alert Styles */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.alert i {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-danger i {
    color: var(--danger);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.alert-success i {
    color: var(--success);
}

.error-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.error-list li {
    margin-bottom: var(--space-xs);
}

.error-list li:last-child {
    margin-bottom: 0;
}

/* Password Strength */
.password-strength {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: var(--gray-800);
    border-radius: var(--radius-full);
    overflow: hidden;
}

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

.strength-text {
    font-size: 0.75rem;
    color: var(--gray-500);
    white-space: nowrap;
}

/* Features Panel */
.auth-features {
    color: var(--white);
}

.auth-features h2 {
    font-size: 2rem;
    margin-bottom: var(--space-xl);
}

.feature-list {
    list-style: none;
    margin-bottom: var(--space-2xl);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    color: var(--gray-300);
    font-size: 1.125rem;
}

.feature-list li i {
    color: var(--success);
    font-size: 1.25rem;
}

.auth-preview {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

.auth-preview img {
    width: 100%;
    height: auto;
}

/* Plan Cards */
.plan-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.plan-card {
    background: var(--dark-lighter);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    position: relative;
}

.plan-card.premium {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.plan-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.plan-header {
    text-align: center;
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-md);
}

.plan-header h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.plan-header .price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
}

.plan-header .price small {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gray-500);
}

.plan-card ul {
    list-style: none;
}

.plan-card li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.plan-card li i {
    color: var(--success);
    font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 992px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .auth-features {
        display: none;
    }
}

@media (max-width: 576px) {
    .auth-page {
        padding: var(--space-md);
    }

    .auth-card {
        padding: var(--space-lg);
    }

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

    .social-login {
        grid-template-columns: 1fr;
    }
}
