/* Custom CSS for Login Page */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    margin: 20px;
}

.login-form {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Phone input styling */
.input-group-text {
    background-color: #f8f9fa;
    border-right: none;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.country-code {
    border-left: none;
    border-right: none;
    background-color: #f8f9fa;
}

/* OTP input styling */
.otp-input-container {
    max-width: 300px;
    margin: 0 auto;
}

.otp-input {
    width: 45px;
    height: 45px;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.otp-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    transform: scale(1.05);
}

.otp-input.filled {
    background-color: #e7f3ff;
    border-color: #667eea;
}

/* Button styling */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.7;
    transform: none;
}

/* Left side styling */
.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .login-container {
        margin: 10px;
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .otp-input {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Loading animation */
.btn .spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Success animation */
.modal-content {
    border: none;
    border-radius: 15px;
}

/* Countdown styling */
#countdown {
    font-weight: bold;
    color: #667eea;
}

/* Error styling */
.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
}

/* Link styling */
a {
    color: #667eea;
}

a:hover {
    color: #764ba2;
}

/* Animation for form switching */
.login-form.slide-out {
    animation: slideOut 0.3s ease-in-out;
}

.login-form.slide-in {
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

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