/* ========================================
   VOLUNTIA AUTH PAGES STYLES
   ======================================== */

:root {
    --auth-primary: #1E3A5F;
    --auth-secondary: #2A9D8F;
    --auth-accent: #F4A261;
    --auth-bg: #f8f9fa;
    --auth-text: #1a1a2e;
    --auth-muted: #6c757d;
    --auth-border: #e9ecef;
}

/* Base */
.auth-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--auth-bg);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.auth-container {
    display: flex;
    min-height: 100vh;
}

/* ========================================
   BRAND SIDE (LEFT)
   ======================================== */
.auth-brand-side {
    flex: 1;
    background: linear-gradient(135deg, var(--auth-primary) 0%, #152a45 100%);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-brand-side::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 60%;
    height: 80%;
    background: rgba(42, 157, 143, 0.1);
    border-radius: 50%;
}

.auth-brand-side::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 40%;
    height: 60%;
    background: rgba(42, 157, 143, 0.05);
    border-radius: 50%;
}

.brand-content {
    position: relative;
    z-index: 1;
    max-width: 480px;
}

.brand-logo {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 3rem;
}

.brand-logo span {
    color: var(--auth-secondary);
}

.brand-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.brand-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.brand-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.brand-feature i {
    font-size: 1.25rem;
    color: var(--auth-secondary);
}

.brand-feature span {
    font-size: 0.95rem;
}

.brand-footer {
    position: relative;
    z-index: 1;
}

.brand-footer p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* ========================================
   FORM SIDE (RIGHT)
   ======================================== */
.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: white;
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
}

.brand-logo-mobile {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--auth-primary);
    text-decoration: none;
    display: inline-block;
}

.brand-logo-mobile span {
    color: var(--auth-secondary);
}

/* Form Header */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--auth-primary);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--auth-muted);
    margin-bottom: 0;
}

/* Form Styles */
.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form .form-label {
    font-weight: 500;
    color: var(--auth-text);
    margin-bottom: 0.5rem;
}

.auth-form .form-control {
    padding: 0.75rem 1rem;
    border: 2px solid var(--auth-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form .form-control:focus {
    border-color: var(--auth-secondary);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.15);
}

.auth-form .form-control.is-invalid {
    border-color: #dc3545;
}

.auth-form .invalid-feedback {
    font-size: 0.85rem;
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--auth-muted);
    cursor: pointer;
    padding: 0.25rem;
}

.password-toggle:hover {
    color: var(--auth-text);
}

/* Buttons */
.btn-auth-primary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background-color: var(--auth-secondary);
    border: none;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-auth-primary:hover {
    background-color: #228176;
    transform: translateY(-1px);
}

.btn-auth-primary:disabled {
    background-color: #a0aec0;
    cursor: not-allowed;
    transform: none;
}

.btn-auth-secondary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background-color: transparent;
    border: 2px solid var(--auth-border);
    color: var(--auth-text);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-auth-secondary:hover {
    border-color: var(--auth-muted);
    background-color: var(--auth-bg);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--auth-border);
}

.auth-divider span {
    padding: 0 1rem;
    color: var(--auth-muted);
    font-size: 0.875rem;
}

/* Links */
.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-links a {
    color: var(--auth-secondary);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Checkbox */
.form-check {
    margin-bottom: 1rem;
}

.form-check-input:checked {
    background-color: var(--auth-secondary);
    border-color: var(--auth-secondary);
}

.form-check-label {
    color: var(--auth-muted);
    font-size: 0.9rem;
}

.form-check-label a {
    color: var(--auth-secondary);
    text-decoration: none;
}

/* Alert */
.auth-alert {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.auth-alert.alert-danger {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.auth-alert.alert-success {
    background-color: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* Success State */
.auth-success {
    text-align: center;
    padding: 2rem 0;
}

.auth-success-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(42, 157, 143, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.auth-success-icon i {
    font-size: 2.5rem;
    color: var(--auth-secondary);
}

.auth-success h3 {
    color: var(--auth-primary);
    margin-bottom: 0.75rem;
}

.auth-success p {
    color: var(--auth-muted);
    margin-bottom: 1.5rem;
}

/* Plan Selection Cards */
.plan-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.plan-card {
    position: relative;
    padding: 1.25rem;
    border: 2px solid var(--auth-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.plan-card:hover {
    border-color: var(--auth-secondary);
}

.plan-card.selected {
    border-color: var(--auth-secondary);
    background-color: rgba(42, 157, 143, 0.05);
}

.plan-card.popular {
    border-color: var(--auth-accent);
}

.plan-card.popular::before {
    content: 'Popular';
    position: absolute;
    top: -10px;
    right: 16px;
    background-color: var(--auth-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.plan-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.plan-name {
    font-weight: 600;
    color: var(--auth-primary);
    font-size: 1.1rem;
}

.plan-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--auth-secondary);
}

.plan-price small {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--auth-muted);
}

.plan-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.plan-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--auth-muted);
}

.plan-feature i {
    color: var(--auth-secondary);
    font-size: 0.75rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991.98px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-form-side {
        min-height: 100vh;
    }
    
    .auth-form-container {
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .auth-form-side {
        padding: 1.5rem;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
    
    .brand-content h1 {
        font-size: 2rem;
    }
}
