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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #2d2d2d 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    overflow-x: hidden;
}

/* Animated background particles */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { width: 4px; height: 4px; top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 6px; height: 6px; top: 80%; left: 80%; animation-delay: 2s; }
.particle:nth-child(3) { width: 3px; height: 3px; top: 40%; left: 70%; animation-delay: 4s; }
.particle:nth-child(4) { width: 5px; height: 5px; top: 70%; left: 20%; animation-delay: 1s; }
.particle:nth-child(5) { width: 4px; height: 4px; top: 10%; left: 60%; animation-delay: 3s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

.container {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 60px 50px;
    width: 100%;
    max-width: 480px;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    margin: 20px;
    transition: all 0.4s ease;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 24px;
    pointer-events: none;
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
    transition: all 0.4s ease;
}

.logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.logo i {
    font-size: 36px;
    color: white;
}

.title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.4s ease;
}

.subtitle {
    font-size: 16px;
    color: #a0a0a0;
    font-weight: 400;
    line-height: 1.5;
    transition: all 0.4s ease;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin: 0 8px;
    transition: all 0.3s ease;
    position: relative;
}

.step.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.step.completed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
}

.step::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%);
}

.step:last-child::after {
    display: none;
}

.step.completed::after {
    background: #10b981;
}

/* Form sections */
.form-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

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

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 12px;
    padding-left: 4px;
}

.phone-input-container {
    position: relative;
}

#phone {
    width: 100%;
    padding: 18px 20px;
    font-size: 16px;
    background: rgba(40, 40, 40, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #ffffff;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

#phone:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(40, 40, 40, 0.95);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

#phone::placeholder {
    color: #666;
}

/* OTP Input Styling */
.otp-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.otp-input {
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    background: rgba(40, 40, 40, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.otp-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(40, 40, 40, 0.95);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: scale(1.05);
}

.otp-input.filled {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

/* International telephone input styling */
.iti {
    width: 100% !important;
    z-index: 100;
}

.iti__flag-container {
    border-radius: 16px 0 0 16px !important;
}

.iti__selected-flag {
    background: rgba(40, 40, 40, 0.8) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-right: none !important;
    border-radius: 16px 0 0 16px !important;
    padding: 18px 16px !important;
    height: auto !important;
    min-width: 80px;
    position: relative;
    z-index: 10;
}

.iti__selected-flag:hover,
.iti__selected-flag:focus {
    background: rgba(40, 40, 40, 0.95) !important;
}

.iti__arrow {
    border-left-color: #a0a0a0 !important;
    border-right-color: #a0a0a0 !important;
    width: 0;
    height: 0;
    border-left: 5px solid transparent !important;
    border-right: 5px solid transparent !important;
    border-top: 5px solid #a0a0a0 !important;
    border-bottom: none !important;
    margin-left: 8px;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.iti__selected-flag.iti__open .iti__arrow {
    border-top: none !important;
    border-bottom: 5px solid #a0a0a0 !important;
}

.iti__dropdown {
    background: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
    margin-top: 4px !important;
    z-index: 1000 !important;
    position: absolute;
    max-height: 200px !important;
    overflow-y: auto !important;
}

.iti__dropdown::-webkit-scrollbar {
    width: 6px;
}

.iti__dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.iti__dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.iti__dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.iti__country {
    padding: 12px 16px !important;
    color: #ffffff !important;
    transition: background-color 0.2s ease;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: transparent !important;
}

.iti__country:last-child {
    border-bottom: none !important;
}

.iti__country:hover {
    background: rgba(102, 126, 234, 0.2) !important;
}

.iti__country.iti__highlight {
    background: rgba(102, 126, 234, 0.3) !important;
}

.iti__country-name {
    color: #ffffff !important;
    font-weight: 400;
}

.iti__dial-code {
    color: #a0a0a0 !important;
    font-weight: 500;
}

.iti__flag {
    margin-right: 8px;
}

/* Search input in dropdown */
.iti__search-input {
    background: rgba(40, 40, 40, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    padding: 8px 12px !important;
    margin: 8px !important;
    width: calc(100% - 16px) !important;
    font-size: 14px !important;
}

.iti__search-input:focus {
    outline: none !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2) !important;
}

.iti__search-input::placeholder {
    color: #666 !important;
}

/* Additional specific overrides for dropdown */
.iti__country-list {
    background: #1a1a1a !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}

.iti__dropdown-content {
    background: #1a1a1a !important;
}

/* Override any white background */
.iti__dropdown *,
.iti__country-list *,
.iti__dropdown-content * {
    background-color: transparent !important;
}

.iti__dropdown,
.iti__country-list,
.iti__dropdown-content {
    background: #1a1a1a !important;
}

.primary-button {
    width: 100%;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    margin-bottom: 16px;
}

.primary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.primary-button:hover::before {
    left: 100%;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.primary-button:active {
    transform: translateY(0);
}

.secondary-button {
    width: 100%;
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 500;
    background: transparent;
    color: #a0a0a0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.secondary-button:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.resend-info {
    text-align: center;
    margin-bottom: 24px;
}

.resend-timer {
    color: #a0a0a0;
    font-size: 14px;
    margin-bottom: 12px;
}

.resend-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.resend-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.resend-link.disabled {
    color: #666;
    cursor: not-allowed;
    pointer-events: none;
}

/* Loading animation */
.loading {
    position: relative;
    pointer-events: none;
}

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

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

/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Success state */
.success-message {
    display: none;
    text-align: center;
    color: #10b981;
    font-size: 14px;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.error-message {
    display: none;
    text-align: center;
    color: #ef4444;
    font-size: 14px;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
}

.error-message.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 40px 30px;
        margin: 20px 16px;
        max-width: none;
    }
    
    .title {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 15px;
    }
    
    .otp-input {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .otp-container {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 30px 24px;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .logo i {
        font-size: 28px;
    }
    
    .title {
        font-size: 24px;
    }
    
    .otp-input {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .otp-container {
        gap: 6px;
    }
} 