/* ============================================
   FinAdvisor - Authentication Pages CSS
   ============================================ */

:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --success: #48bb78;
    --danger: #f56565;
    --dark: #2d3748;
    --gray: #718096;
    --light-gray: #e2e8f0;
    --bg: #f7fafc;
    --card-bg: #ffffff;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--dark);
    line-height: 1.6;
}

.auth-container {
    display: flex;
    min-height: 100vh;
}

.auth-card {
    flex: 1;
    max-width: 480px;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--card-bg);
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 32px;
}

.auth-logo i {
    font-size: 32px;
}

.auth-card h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-card > p {
    color: var(--gray);
    margin-bottom: 32px;
}

.alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background: rgba(245, 101, 101, 0.1);
    color: var(--danger);
    border: 1px solid rgba(245, 101, 101, 0.2);
}

.alert-success {
    background: rgba(72, 187, 120, 0.1);
    color: var(--success);
    border: 1px solid rgba(72, 187, 120, 0.2);
}

.alert a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark);
}

.input-group {
    display: flex;
    align-items: center;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    transition: border-color 0.3s;
    overflow: hidden;
}

.input-group:focus-within {
    border-color: var(--primary);
}

.input-group i {
    padding: 0 14px;
    color: var(--gray);
    font-size: 16px;
}

.input-group input {
    flex: 1;
    padding: 12px 12px 12px 0;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: inherit;
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--gray);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--gray);
}

.checkbox-label input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

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

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

.btn-auth {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

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

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

/* Plan Options */
.plan-options {
    display: flex;
    gap: 12px;
}

.plan-option {
    flex: 1;
    cursor: pointer;
}

.plan-option input {
    display: none;
}

.plan-card {
    padding: 16px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

.plan-option:hover .plan-card {
    border-color: var(--primary);
}

.plan-option input:checked + .plan-card {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.05);
}

.plan-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.plan-price {
    display: block;
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.plan-desc {
    display: block;
    font-size: 12px;
    color: var(--gray);
}

/* Auth Image Side */
.auth-image {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-image::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

.auth-overlay {
    position: relative;
    z-index: 1;
    color: white;
    padding: 48px;
    max-width: 500px;
}

.auth-overlay h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.auth-overlay p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.6;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.feature-item i {
    font-size: 20px;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 968px) {
    .auth-image {
        display: none;
    }
    .auth-card {
        max-width: 100%;
        padding: 32px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 24px;
    }
    .plan-options {
        flex-direction: column;
    }
}
