:root {
    /* Flexina blue color palette */
    --primary-color: #0066CC;
    --primary-hover: #0052A3;
    --primary-light: #E6F2FF;
    --primary-lighter: #F0F7FF;
    --secondary-color: #1E293B;
    --secondary-hover: #0F172A;
    --success-color: #059669;
    --success-light: #D1FAE5;
    --danger-color: #DC2626;
    --danger-light: #FEE2E2;
    --warning-color: #D97706;
    --warning-light: #FEF3C7;
    --info-color: #0066CC;
    --info-light: #E6F2FF;
    
    /* Backgrounds */
    --background-color: #F8FAFC;
    --card-background: #FFFFFF;
    --overlay-background: rgba(15, 23, 42, 0.5);
    
    /* Text colors */
    --text-color: #1E293B;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --text-inverse: #FFFFFF;
    
    /* Borders */
    --border-color: #E2E8F0;
    --border-light: #F1F5F9;
    --border-focus: var(--primary-color);
    
    /* Shadows - Modern, subtle */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(0, 102, 204, 0.15);
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

/* Modern gradient background */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(to bottom right, var(--primary-light) 0%, transparent 50%),
        linear-gradient(to bottom left, var(--info-light) 0%, transparent 50%),
        var(--background-color);
    z-index: -2;
}

/* Animated gradient orbs */
.container::after {
    content: '';
    position: absolute;
    width: 40rem;
    height: 40rem;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.08;
    top: -20rem;
    right: -10rem;
    animation: float 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.card {
    background: var(--card-background);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 36rem;
    border: 1px solid var(--border-light);
    overflow: hidden;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
}

.card-header {
    padding: 3.5rem 3rem 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-lighter) 0%, rgba(255, 255, 255, 0) 100%);
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

/* Decorative element */
.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at top right, var(--primary-color), transparent);
    opacity: 0.1;
    border-radius: 0 var(--radius-xl) 0 50%;
}

.logo {
    width: 200px;
    max-width: 65%;
    height: auto;
    margin: 0 auto 2.5rem;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
    transition: transform var(--transition-base);
}

.logo:hover {
    transform: scale(1.05);
}

.card-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 0.75rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.card-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
}

.card-content {
    padding: 2.5rem 3rem;
}

/* Tabs styling - Modern pills */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    padding: 0.375rem;
    background: var(--background-color);
    border-radius: var(--radius-lg);
    position: relative;
}

.tab {
    flex: 1;
    padding: 1rem 1.5rem;
    text-align: center;
    cursor: pointer;
    background: transparent;
    border: none;
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--transition-base);
    font-size: 1rem;
    position: relative;
    border-radius: var(--radius);
    z-index: 2;
}

.tab:hover {
    color: var(--text-color);
}

.tab.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Sliding background indicator */
.tabs::before {
    content: '';
    position: absolute;
    background: var(--card-background);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    z-index: 1;
}

/* Calculate position based on active tab */
.tabs:has(.tab:first-child.active)::before {
    left: 0.375rem;
    top: 0.375rem;
    bottom: 0.375rem;
    width: calc(50% - 0.625rem);
}

.tabs:has(.tab:last-child.active)::before {
    right: 0.375rem;
    top: 0.375rem;
    bottom: 0.375rem;
    width: calc(50% - 0.625rem);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

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

/* Form styling - Modern and accessible */
.form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.625rem;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    transition: color var(--transition-fast);
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1.0625rem;
    font-weight: 400;
    transition: all var(--transition-base);
    background-color: var(--card-background);
    position: relative;
}

.form-input:hover:not(:focus) {
    border-color: var(--text-light);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
    background-color: var(--card-background);
}

.form-input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

/* Input icons */
.form-group.has-icon {
    position: relative;
}

.form-group.has-icon .form-input {
    padding-left: 3.5rem;
}

.form-icon {
    position: absolute;
    left: 1.25rem;
    top: 3rem;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-light);
    pointer-events: none;
    transition: color var(--transition-base);
}

.form-group:has(.form-input:focus) .form-icon {
    color: var(--primary-color);
}

/* Button styling - Modern with gradient */
.btn {
    width: 100%;
    padding: 1.125rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--radius);
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    letter-spacing: 0.01em;
    overflow: hidden;
    box-shadow: 0 4px 14px 0 rgba(0, 102, 204, 0.25);
}

/* Ripple effect */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px 0 rgba(0, 102, 204, 0.35);
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px 0 rgba(0, 102, 204, 0.2);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--primary-light);
    border-color: var(--primary-hover);
    box-shadow: 0 4px 14px 0 rgba(0, 102, 204, 0.15);
}

/* Link button style */
.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius);
}

.btn-link:hover {
    background: var(--primary-light);
    color: var(--primary-hover);
    text-decoration: none;
}

/* Alert messages - Modern with subtle gradients */
.alert {
    padding: 1.125rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.75rem;
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    border: 1px solid;
    position: relative;
    overflow: hidden;
}

/* Alert gradient accent */
.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.alert-error {
    background-color: var(--danger-light);
    color: var(--danger-color);
    border-color: rgba(220, 38, 38, 0.2);
}

.alert-error::before {
    background: var(--danger-color);
}

.alert-success {
    background-color: var(--success-light);
    color: var(--success-color);
    border-color: rgba(5, 150, 105, 0.2);
}

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

.alert-info {
    background-color: var(--info-light);
    color: var(--info-color);
    border-color: rgba(37, 99, 235, 0.2);
}

.alert-info::before {
    background: var(--info-color);
}

.alert-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.0625rem;
}

/* OTP Input styling - Clean number input */
.otp-container {
    margin-bottom: 1.5rem;
}

.otp-input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.5em;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-weight: 500;
    padding: 1.125rem;
}

/* Links - Subtle styling */

.text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.text-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.text-link-inactive {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.text-link-inactive:hover {
    color: var(--text-color);
    text-decoration: underline;
}

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

.text-muted {
    color: var(--text-muted);
}

.text-small {
    font-size: 0.875rem;
}

/* Divider */
.divider {
    margin: 1.5rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

/* Loading spinner - Modern dots */
.loading {
    display: inline-flex;
    gap: 0.25rem;
    align-items: center;
}

.loading::before,
.loading::after,
.loading span {
    content: '';
    display: inline-block;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background-color: currentColor;
    animation: loading-dots 1.4s infinite ease-in-out both;
}

.loading::before {
    animation-delay: -0.32s;
}

.loading span {
    animation-delay: -0.16s;
}

@keyframes loading-dots {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Success animation wrapper */
.success-animation {
    position: relative;
    margin: 0 auto 2rem;
    width: 80px;
    height: 80px;
}

/* Success checkmark - Modern animated */
.success-icon {
    width: 80px;
    height: 80px;
    display: block;
    animation: scaleIn 0.4s ease-out;
}

.success-icon circle {
    stroke: var(--success-color);
    stroke-width: 2;
    fill: var(--success-light);
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: checkmark-circle 0.6s ease-out forwards;
}

.success-icon path {
    stroke: var(--success-color);
    stroke-width: 3;
    fill: none;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: checkmark-check 0.3s ease-out 0.5s forwards;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkmark-circle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes checkmark-check {
    to {
        stroke-dashoffset: 0;
    }
}

/* Pulse effect after animation */
.success-animation::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--success-color);
    opacity: 0;
    animation: pulse 2s ease-out 1s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.3;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

/* Steps list - Clean and organized */
.steps-list {
    background-color: var(--background-color);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.steps-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 1rem;
}

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

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border-light);
}

.step-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.step-number {
    width: 1.75rem;
    height: 1.75rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.step-description {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Footer styling - Clean and minimal */
.card-footer {
    padding: 2rem 3rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8125rem;
    background-color: var(--background-color);
    border-top: 1px solid var(--border-light);
}

.card-footer p {
    margin: 0.25rem 0;
}

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

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

/* Responsive design */
@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }
    
    .card {
        max-width: 100%;
        box-shadow: var(--shadow-md);
    }
    
    .card-header {
        padding: 2.5rem 2rem 2rem;
    }
    
    .card-content {
        padding: 2rem 1.5rem;
    }
    
    .card-footer {
        padding: 1.5rem 2rem;
    }
    
    .card-title {
        font-size: 1.75rem;
    }
    
    .form-input {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }
    
    .form-group.has-icon .form-input {
        padding-left: 3rem;
    }
    
    .form-icon {
        left: 1rem;
        top: 2.875rem;
    }
    
    .btn {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .tab {
        font-size: 0.9375rem;
        padding: 0.875rem 1rem;
    }
}