/* OTP Login System Styles */
.otp-container {
    min-height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    position: relative;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    max-width: 600px;
    margin-top: 2rem;
    margin-bottom: 3rem;
    z-index: 1;
    overflow: visible;
}

/* Force horizontal layout for progress bar */
.progress-container .progress-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

.progress-bar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: nowrap !important;
    overflow: visible;
}

.progress-step {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    position: relative;
    z-index: 2;
    flex-shrink: 0 !important;
    min-width: 80px;
    width: auto;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.7);
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.step-label {
    margin-top: 0.5rem;
    color: rgba(0, 0, 0, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-color: #007bff;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
    transform: scale(1.1);
}

.progress-step.completed .step-number {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-color: #28a745;
    color: white;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.progress-step.completed .step-number::after {
    content: '✓';
    font-size: 1.5rem;
}

.progress-line {
    height: 2px;
    background: rgba(0, 0, 0, 0.2);
    flex: 1;
    margin: 0 0.5rem;
    position: relative;
    overflow: hidden;
    min-width: 30px;
}

.progress-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #007bff, #28a745);
    transition: left 0.5s ease;
}

.progress-line.completed::before {
    left: 0;
}

/* Main Content */
.otp-content {
    width: 100%;
    max-width: 450px;
    z-index: 1;
}

.glass-container {
    background: #ffffff;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
    padding: 2.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

/* Header */
.otp-header {
    text-align: center;
    margin-bottom: 2rem;
}

.otp-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 2px solid #e0e0e0;
}

.otp-icon i {
    font-size: 2rem;
    color: #007bff;
}

.otp-header h2 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.otp-header p {
    color: rgba(0, 0, 0, 0.7);
    font-size: 1rem;
    margin: 0;
}

/* Form Styles */
.otp-form {
    margin-bottom: 1.5rem;
}

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

.form-label {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
    font-size: 1rem;
}

.form-control {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    color: #333;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    background: #ffffff;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    color: #333;
    outline: none;
}

.input-group:focus-within .input-group-text {
    border-color: #007bff;
    background: rgba(255, 255, 255, 1);
}

.input-group:focus-within .country-code {
    background: rgba(255, 255, 255, 1) !important;
    border-color: #007bff !important;
}

.form-control::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.input-group {
    position: relative;
}

.input-group-text {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-left: none;
    border-radius: 0 10px 10px 0;
    color: #333;
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.input-group .form-control {
    border-radius: 10px 0 0 10px;
    border-right: none;
}

.country-code {
    background: #f8f9fa !important;
    color: #333 !important;
    font-weight: 700 !important;
    border-color: #e0e0e0 !important;
}

.form-text {
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* OTP Input Squares */
.otp-input-container {
    margin-bottom: 2rem;
    direction: ltr !important;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}

.otp-inputs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
    direction: ltr !important;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.otp-input {
    width: 60px;
    height: 60px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #ffffff;
    color: #333;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    transition: border-color 0.3s ease;
    flex-shrink: 0;
    min-width: 60px;
    padding: 1rem 0;
}

.otp-input:focus {
    border-color: #007bff;
    background: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.otp-input.filled {
    border-color: #28a745;
    background: #f8fff9;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Buttons */
.btn {
    border-radius: 10px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    border: none;
}

.btn-primary-glass {
    background: #007bff;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.btn-primary-glass:hover {
    background: #0056b3;
    color: #fff;
}

.btn-primary-glass:disabled {
    opacity: 0.6;
    background: #6c757d;
}

.btn-glass {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    color: #333;
}

.btn-glass:hover {
    background: #e9ecef;
    color: #333;
}

/* OTP Actions */
.otp-actions {
    text-align: center;
}

.resend-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.resend-section p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.countdown {
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Footer */
.otp-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.otp-footer p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.text-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.text-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Form Check */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin: 0;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
}

.form-check-input:checked {
    background: #007bff;
    border-color: #007bff;
}

.form-check-label {
    color: #333;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .otp-container {
        padding: 1rem;
    }
    
    .glass-container {
        padding: 2rem 1.5rem;
    }
    
    .otp-inputs {
        gap: 0.75rem;
    }
    
    .otp-input {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        flex-shrink: 0;
        min-width: 50px;
    }
    
    .progress-step {
        flex-direction: column !important;
        flex-shrink: 0 !important;
    }
    
    .progress-bar {
        flex-wrap: nowrap !important;
        flex-direction: row !important;
        justify-content: space-between;
        overflow: visible;
        display: flex !important;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .progress-line {
        margin: 0 0.25rem;
        min-width: 20px;
    }
    
    .progress-container {
        max-width: 100%;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .otp-inputs {
        gap: 0.5rem;
    }
    
    .otp-input {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        flex-shrink: 0;
        min-width: 45px;
    }
    
    .progress-line {
        margin: 0 0.1rem;
        min-width: 15px;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .glass-container {
        padding: 1.5rem 1rem;
    }
    
    .otp-header h2 {
        font-size: 1.5rem;
    }
    
    .otp-icon {
        width: 60px;
        height: 60px;
    }
    
    .otp-icon i {
        font-size: 1.5rem;
    }
}

/* Custom Scrollbar */
.otp-container::-webkit-scrollbar {
    width: 6px;
}

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

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

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

/* Desktop optimizations */
@media (min-width: 1200px) {
    .otp-inputs {
        gap: 0.3rem;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .otp-input {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        flex-shrink: 0;
        min-width: 45px;
    }
}

@media (min-width: 1600px) {
    .otp-inputs {
        gap: 0.4rem;
        max-width: 380px;
        margin: 0 auto;
    }
    
    .otp-input {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        flex-shrink: 0;
        min-width: 48px;
    }
}
