/* Email OTP Authentication Styles */

.email-otp-login-form,
.email-otp-register-form {
    max-width: 900px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.email-otp-login-form h3,
.email-otp-register-form h3 {
    margin: 0 0 20px 0;
    color: #333;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
}

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

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

#email-otp-profile-form,
#email-otp-login-profile-form {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e1e5e9;
}

#email-otp-profile-form h4,
#email-otp-login-profile-form h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

/* Wizard Styles */
#email-otp-wizard {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e1e5e9;
}

#email-otp-wizard h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.wizard-steps {
    position: relative;
}

.wizard-steps .step {
    display: none;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.wizard-steps .step.active {
    display: block;
}

.wizard-steps .step h5 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #007cba;
}

.wizard-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.wizard-buttons .btn {
    min-width: 120px;
}

/* Step indicator *
.wizard-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: #e1e5e9;
    z-index: 1;
}

.wizard-steps .step::after {
    content: '';
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #e1e5e9;
    border-radius: 50%;
    z-index: 2;
}

.wizard-steps .step.active::after {
    background: #007cba;
}*/

/* Input error state */
input.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

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

.form-group input[type="email"],
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="email"]:focus,
.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="tel"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}



#eoa-reset-wrap label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

#eoa-reset-wrap input[type="email"],
#eoa-reset-wrap input[type="text"],
#eoa-reset-wrap input[type="password"],
#eoa-reset-wrap input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

#eoa-reset-wrap input[type="email"]:focus,
#eoa-reset-wrap input[type="text"]:focus,
#eoa-reset-wrap input[type="password"]:focus,
#eoa-reset-wrap input[type="tel"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}


.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.btn-primary {
    background-color: #007cba;
    color: white;
}

.btn-primary:hover {
    background-color: #005a87;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

.otp-group {
    animation: fadeIn 0.3s ease-in;
}

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

.message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    display: none;
}

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

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

/* Loading state */
.btn:disabled {
    position: relative;
    color: transparent;
}

.btn:disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive design */
@media (max-width: 480px) {
    .email-otp-login-form,
    .email-otp-register-form {
        margin: 10px;
        padding: 20px;
    }
    
    .email-otp-login-form h3,
    .email-otp-register-form h3 {
        font-size: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 20px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .email-otp-login-form,
    .email-otp-register-form {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .email-otp-login-form h3,
    .email-otp-register-form h3 {
        color: #e2e8f0;
    }
    
    .form-group label {
        color: #cbd5e0;
    }
    
    .form-group input[type="email"],
    .form-group input[type="text"],
    .form-group input[type="password"] {
        background: #4a5568;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .form-group input[type="email"]:focus,
    .form-group input[type="text"]:focus,
    .form-group input[type="password"]:focus {
        border-color: #007cba;
        background: #4a5568;
    }
}

/* Accessibility improvements */
.form-group input:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .form-group input[type="email"],
    .form-group input[type="text"],
    .form-group input[type="password"] {
        border-width: 3px;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}
