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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    padding: 40px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::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 200 100"><circle cx="40" cy="20" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="160" cy="30" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="60" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="140" cy="70" r="2.5" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.6;
}

.logo-container {
    position: relative;
    z-index: 1;
}

.kotak-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.kotak-text {
    color: white;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.neo-text {
    color: #ff6b6b;
    font-size: 36px;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 1px;
}

.tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 400;
    margin-top: 8px;
}

.login-container {
    flex: 1;
    padding: 30px 20px;
    background: white;
    border-radius: 25px 25px 0 0;
    margin-top: -25px;
    position: relative;
    z-index: 2;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
}

.login-options {
    display: flex;
    background: #f8fafc;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 30px;
    gap: 4px;
}

.option {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
    background: transparent;
}

.option.active {
    background: white;
    color: #4a90e2;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.15);
}

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

.input-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.input-field {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafbfc;
    -webkit-appearance: none;
    appearance: none;
}

.mobile-input-container {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.country-selector {
    min-width: 80px;
    padding: 16px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    background: #fafbfc;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="6,9 12,15 18,9"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
}

.country-selector:focus {
    outline: none;
    border-color: #4a90e2;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.mobile-input-container .input-field {
    flex: 1;
}

.input-field:focus {
    outline: none;
    border-color: #4a90e2;
    background: white;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.input-field::placeholder {
    color: #94a3b8;
}

.input-hint {
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
}

.continue-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #8b95a1 0%, #9ca5b1 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.continue-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.continue-btn:not(:disabled):active {
    transform: translateY(0);
}

.continue-btn:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.continue-btn.enabled {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
}

.continue-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.footer-links {
    margin-top: 30px;
    text-align: center;
}

.footer-link {
    color: #64748b;
    font-size: 14px;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #4a90e2;
}

.error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
    display: none;
}

.error-message.show {
    display: block;
}

.input-field.error {
    border-color: #ef4444;
    background: #fef2f2;
}

/* Touch improvements */
@media (hover: none) {
    .continue-btn:not(:disabled):hover {
        transform: none;
        box-shadow: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}