/* Authentication Pages Styles */
/* Updated to match Invary's modern design aesthetic */

/* Auth Navigation */
.auth-navbar {
    background: white;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.auth-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-right: var(--spacing-2);
}

/* Auth Main Layout */
.auth-main {
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-20) var(--spacing-8);
    position: relative;
    overflow: hidden;
}

.auth-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    width: 100%;
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    min-height: 600px;
    position: relative;
    z-index: 1;
    border: 1px solid var(--border-light);
}

/* Left Panel - Benefits/Info */
.auth-panel {
    background: var(--gradient-secondary);
    color: white;
    padding: var(--spacing-12);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.auth-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.1"><circle cx="30" cy="30" r="4"/></g></svg>');
    animation: float 20s ease-in-out infinite;
}

.panel-content {
    position: relative;
    z-index: 1;
}

.panel-content h2 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-4);
    line-height: 1.2;
}

.panel-content > p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-12);
    opacity: 0.9;
    line-height: 1.7;
}

/* Benefits List */
.benefits-list {
    margin-bottom: var(--spacing-12);
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-6);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.benefit-icon i {
    font-size: var(--font-size-xl);
    color: white;
}

.benefit-content h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-1);
    color: white;
}

.benefit-content p {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Signup Stats */
.signup-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-6);
    margin-top: var(--spacing-8);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: white;
    margin-bottom: var(--spacing-1);
}

.stat-label {
    font-size: var(--font-size-xs);
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.9);
}

/* Right Panel - Form */
.auth-form-panel {
    padding: var(--spacing-12);
    display: flex;
    align-items: center;
    background: white;
}

.form-container {
    width: 100%;
    max-width: 400px;
}

.form-header {
    text-align: center;
    margin-bottom: var(--spacing-8);
}

.form-header h1 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-2);
}

.form-header p {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

.signup-bonus-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
    padding: var(--spacing-2) var(--spacing-4);
    border-radius: var(--border-radius-xl);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-top: var(--spacing-4);
    box-shadow: var(--shadow-md);
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-8);
    position: relative;
}

.progress-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-2);
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.step-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
}

.progress-step.active .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.progress-step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.progress-step.completed .step-number {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.progress-step.completed .step-label {
    color: var(--accent-color);
    font-weight: 600;
}

/* Form Styles */
.auth-form {
    width: 100%;
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.form-step.active {
    display: block;
}

.form-step h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-2);
}

.step-description {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-6);
    line-height: 1.6;
}

.form-group {
    margin-bottom: var(--spacing-6);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4);
}

.form-group label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-2);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: var(--spacing-3);
    color: var(--text-muted);
    font-size: var(--font-size-base);
    z-index: 1;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: var(--spacing-3) var(--spacing-3) var(--spacing-3) var(--spacing-10);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    transition: var(--transition);
    background: white;
    font-family: var(--font-family);
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.input-wrapper input.error,
.input-wrapper select.error {
    border-color: #ef4444;
}

.input-wrapper input.success,
.input-wrapper select.success {
    border-color: var(--accent-color);
}

.country-code {
    position: absolute;
    left: var(--spacing-3);
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    font-weight: 500;
    z-index: 1;
}

.input-wrapper input[type="tel"] {
    padding-left: var(--spacing-12);
}

.password-toggle {
    position: absolute;
    right: var(--spacing-4);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: var(--font-size-base);
    transition: var(--transition);
    padding: var(--spacing-1);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.password-toggle:hover {
    color: var(--text-primary);
    background: var(--surface-color);
}

/* Password Strength */
.password-strength {
    margin-top: var(--spacing-2);
}

.strength-bar {
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: var(--spacing-1);
}

.strength-fill {
    height: 100%;
    transition: var(--transition);
    border-radius: 2px;
}

.strength-fill.weak {
    background: #ef4444;
    width: 25%;
}

.strength-fill.fair {
    background: #f59e0b;
    width: 50%;
}

.strength-fill.good {
    background: #10b981;
    width: 75%;
}

.strength-fill.strong {
    background: var(--accent-color);
    width: 100%;
}

.strength-text {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* Field States */
.field-error {
    color: #ef4444;
    font-size: var(--font-size-xs);
    margin-top: var(--spacing-1);
    display: flex;
    align-items: center;
    gap: var(--spacing-1);
}

.field-error::before {
    display: none;
}

.field-help {
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    margin-top: var(--spacing-1);
}

.field-success {
    color: var(--accent-color);
    font-size: var(--font-size-xs);
    margin-top: var(--spacing-1);
    display: flex;
    align-items: center;
    gap: var(--spacing-1);
}

.field-success::before {
    content: '✓';
}

/* Checkbox Group Improvements */
.checkbox-group {
    margin-bottom: var(--spacing-6);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-3);
    cursor: pointer;
    font-size: var(--font-size-sm);
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 3px solid #d1d5db;
    border-radius: 6px;
    background: white;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

.checkbox-label:hover .checkbox-custom {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.checkbox-text {
    flex: 1;
    line-height: 1.6;
}

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

.checkbox-text a:hover {
    text-decoration: underline;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: var(--spacing-4);
    margin-top: var(--spacing-8);
}

.form-actions .btn-secondary {
    flex: 1;
}

.form-actions .btn-primary {
    flex: 2;
}

.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: var(--spacing-2);
}

/* Step 1 Next Button Specific Spacing */
#step-1-next {
    margin-top: var(--spacing-4);
}

/* Disabled Button State */
.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--text-muted) !important;
    border-color: var(--text-muted) !important;
    color: white !important;
}

.btn-disabled:hover {
    transform: none !important;
    box-shadow: var(--shadow-sm) !important;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: var(--spacing-8);
    padding-top: var(--spacing-6);
    border-top: 1px solid var(--border-light);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-2);
}

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

.auth-footer a:hover {
    color: var(--primary-dark);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-8);
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.success-modal .modal-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.success-modal h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.success-modal p {
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 0;
}

.modal-actions {
    margin-top: var(--spacing-6);
    display: flex;
    gap: var(--spacing-4);
}

/* Social Login */
.login-form .social-login {
    margin-bottom: var(--spacing-6);
}

.social-login-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-3);
    padding: var(--spacing-3) var(--spacing-4);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: white;
    color: var(--text-primary);
    font-weight: 600;
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: var(--transition);
    margin-top: var(--spacing-4);
    margin-bottom: var(--spacing-6);
}

.social-login-button:hover {
    border-color: var(--primary-color);
    background: var(--surface-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.social-login-button.google {
    color: #ea4335;
}

.social-login-button.google:hover {
    border-color: #ea4335;
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: var(--spacing-4) 0 var(--spacing-2) 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    background: white;
    padding: 0 var(--spacing-4);
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    position: relative;
    z-index: 1;
}

/* Remember Me */
.remember-me {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-6);
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .auth-panel {
        display: none;
    }
    
    .signup-stats {
        display: none;
    }
}

@media (max-width: 768px) {
    .auth-main {
        padding: var(--spacing-8) var(--spacing-4);
    }
    
    .auth-panel,
    .auth-form-panel {
        padding: var(--spacing-8);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .progress-indicator {
        margin-bottom: var(--spacing-6);
    }
    
    .step-label {
        display: none;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn-secondary {
        order: 2;
    }
    
    .signup-stats {
        display: none;
    }

    .social-login-button {
        padding: var(--spacing-3) var(--spacing-4);
        font-size: var(--font-size-sm);
    }
    
    .checkbox-label {
        font-size: var(--font-size-xs);
        gap: var(--spacing-2);
    }
    
    .checkbox-custom {
        width: 20px;
        height: 20px;
        margin-top: 1px;
    }
    
    .progress-indicator {
        margin-bottom: var(--spacing-6);
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: var(--font-size-sm);
    }
    
    .step-label {
        font-size: var(--font-size-xs);
    }
    
    .progress-indicator::before {
        top: 16px;
    }
}

@media (max-width: 480px) {
    .auth-panel,
    .auth-form-panel {
        padding: var(--spacing-6);
    }
    
    .form-header h1 {
        font-size: var(--font-size-2xl);
    }
    
    .panel-content h2 {
        font-size: var(--font-size-2xl);
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-content {
        padding: var(--spacing-6);
    }
} 

/* City-State Validation Styles */
.input-wrapper select:disabled {
    background-color: var(--surface-color);
    color: var(--text-muted);
    cursor: not-allowed;
}

.input-wrapper select:disabled + .field-error {
    color: var(--text-muted);
} 

/* OTP Section Styles */
#otp-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

#otp-section.show {
    opacity: 1;
    transform: translateY(0);
}

.otp-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
}

#otp-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

#timer-count {
    font-weight: 600;
    color: #ef4444;
}

#resend-otp {
    background: none;
    border: none;
    color: #6366f1;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

#resend-otp:hover {
    color: #4f46e5;
}

#resend-otp:disabled {
    color: #94a3b8;
    cursor: not-allowed;
    text-decoration: none;
}

/* OTP Input Styles */
#otp {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.25rem;
    font-family: 'Courier New', monospace;
}

#otp:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* OTP Form Group - Proper Alignment */
.otp-form-group {
    text-align: center;
}

.otp-label {
    text-align: center;
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #374151;
}

/* OTP Input Blocks */
.otp-input-container {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.otp-input-wrapper {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.otp-digit {
    width: 3rem;
    height: 3rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #374151;
    transition: all 0.2s ease;
    outline: none;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.otp-digit:focus {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: scale(1.02);
}

.otp-digit.filled {
    border-color: #6366f1;
    background: #ffffff;
    color: #374151;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.otp-digit.error {
    border-color: #ef4444;
    background: #fef2f2;
    color: #991b1b;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

/* Mobile responsive OTP */
@media (max-width: 480px) {
    .otp-input-wrapper {
        gap: 0.25rem;
    }
    
    .otp-digit {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

/* OTP Input Animation */
@keyframes otpPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.otp-digit.animate {
    animation: otpPulse 0.3s ease-in-out;
}

/* Mobile Input Styles */
#mobile {
    padding-left: 3.5rem;
}

.country-code {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

/* Form Actions for OTP */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-actions .btn-primary {
    flex: 1;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success/Error States */
.input-wrapper.success input {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.input-wrapper.error input {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Mobile Authentication Specific Styles */
.mobile-auth-container {
    max-width: 400px;
    margin: 0 auto;
}

.mobile-preview {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.mobile-preview .mobile-number {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

/* Responsive Design */
@media (max-width: 768px) {
    #otp-section {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn-primary {
        width: 100%;
    }
    
    #otp {
        font-size: 1.125rem;
        letter-spacing: 0.2rem;
    }
}

/* Animation for OTP section */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#otp-section {
    animation: slideIn 0.3s ease-out;
}

/* Trust indicators for mobile auth */
.trust-indicators {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.625rem;
    color: #6b7280;
    background: #f9fafb;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    white-space: nowrap;
}

.trust-item i {
    color: #10b981;
    font-size: 0.75rem;
}

/* Static Pages - About, Contact, Privacy, Terms */
/* Updated to match Stripe design system */

.about-content,
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.about-header,
.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-header h1,
.contact-header h1 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.about-header .subtitle,
.contact-header .subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-sections,
.contact-sections {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-section,
.contact-section {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.about-section:hover,
.contact-section:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.section-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.section-icon i {
    font-size: 1.5rem;
    color: white;
}

.about-section h2,
.contact-section h2 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.about-section p,
.contact-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-item {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.feature-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.value-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.value-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.value-item h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.value-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Company Info */
.company-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.info-item {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

.info-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Trust Indicators */
.trust-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.trust-item {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    text-align: center;
}

.trust-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.trust-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.trust-item h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.trust-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: var(--gradient-secondary);
    color: white;
    border: none;
}

.cta-section h2 {
    color: white;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-lg);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary-color);
    border: 1px solid transparent;
}

.cta-buttons .btn-primary:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Contact Methods */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-method {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-method:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.method-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-icon i {
    font-size: 1.25rem;
    color: white;
}

.method-content h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.method-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

.response-time {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-style: italic;
}

/* Contact Form */
.contact-form {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-light);
    margin-top: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form .input-wrapper textarea {
    resize: vertical;
    min-height: 120px;
    font-family: var(--font-family);
}

/* Office Information */
.office-info {
    margin-top: 1.5rem;
}

.office-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.office-item {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.office-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.office-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.office-item h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.office-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-content,
    .contact-content {
        padding: 1rem;
    }
    
    .about-header h1,
    .contact-header h1 {
        font-size: var(--font-size-3xl);
    }
    
    .features-grid,
    .values-grid,
    .trust-indicators,
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .office-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .about-section,
    .contact-section {
        padding: 1.5rem;
    }
    
    .section-icon {
        width: 50px;
        height: 50px;
    }
    
    .section-icon i {
        font-size: 1.25rem;
    }
    
    .contact-method,
    .office-item {
        flex-direction: column;
        text-align: center;
    }
    
    .method-icon,
    .office-item i {
        align-self: center;
    }
} 