/**
 * Real-Time Verification Styles
 * Beautiful and responsive feedback styles
 */

/* Feedback Messages */
.feedback-message {
    padding: 10px 12px;
    margin: 8px 0;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    animation: slideIn 0.3s ease-in-out;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

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

/* Password Strength Meter */
.password-strength-meter {
    margin: 12px 0;
    padding: 0;
}

.strength-bar {
    height: 6px;
    border-radius: 3px;
    background: #dc3545;
    transition: width 0.3s ease;
    margin-bottom: 8px;
}

.strength-text {
    display: inline-block;
    font-size: 0.85em;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 3px;
    background: #f5f5f5;
    color: #333;
}

.strength-feedback {
    font-size: 0.8em;
    color: #666;
    margin-top: 6px;
    padding: 6px 8px;
    background: #f9f9f9;
    border-left: 2px solid #D4A574;
    line-height: 1.4;
}

/* OTP Timer */
.otp-timer {
    text-align: center;
    padding: 12px;
    background: #e8f4f8;
    border: 1px solid #b3dce8;
    border-radius: 4px;
    color: #0066cc;
    font-weight: 600;
    font-size: 0.95em;
    margin: 10px 0;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Real-Time Verification Input Styles */
.verify-input {
    position: relative;
}

.verify-input input {
    padding-right: 40px;
    transition: all 0.3s ease;
}

.verify-input.validating input {
    border-color: #ffc107;
    box-shadow: 0 0 5px rgba(255, 193, 7, 0.3);
}

.verify-input.valid input {
    border-color: #28a745;
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.3);
}

.verify-input.invalid input {
    border-color: #dc3545;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
}

.input-status-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    animation: fadeIn 0.3s ease;
}

.input-status-icon.validating {
    animation: spin 1s linear infinite;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        scale: 0.8;
    }
    to {
        opacity: 1;
        scale: 1;
    }
}

/* Email Verification Steps */
.verification-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.verification-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #999;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: #D4A574;
    border-color: #D4A574;
    color: white;
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3);
}

.step.completed .step-circle {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.step.completed .step-circle::after {
    content: '✓';
}

.step-label {
    font-size: 0.9em;
    color: #666;
    text-align: center;
}

.step.active .step-label {
    color: #D4A574;
    font-weight: 600;
}

.step.completed .step-label {
    color: #28a745;
}

/* OTP Input Fields */
.otp-input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.otp-input {
    width: 45px;
    height: 50px;
    font-size: 1.5em;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'DM Sans', Arial, sans-serif;
}

.otp-input:focus {
    outline: none;
    border-color: #D4A574;
    box-shadow: 0 0 10px rgba(212, 165, 116, 0.3);
}

.otp-input.filled {
    background: #f0e6d8;
    border-color: #D4A574;
}

.otp-input.error {
    background: #f8d7da;
    border-color: #dc3545;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Verification Status */
.verification-status {
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.verification-status.verifying {
    background: #e8f4f8;
    color: #0066cc;
    border: 1px solid #b3dce8;
}

.verification-status.verified {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.verification-status.failed {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Spinner */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Real-Time Validation Summary */
.validation-summary {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
}

.validation-summary h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 0.95em;
}

.validation-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.9em;
    color: #666;
}

.validation-item.valid {
    color: #28a745;
}

.validation-item.valid::before {
    content: '✓';
    font-weight: bold;
    color: #28a745;
}

.validation-item.invalid {
    color: #dc3545;
}

.validation-item.invalid::before {
    content: '✗';
    font-weight: bold;
    color: #dc3545;
}

.validation-item.pending {
    color: #ffc107;
}

.validation-item.pending::before {
    content: '⟳';
    animation: spin 1s linear infinite;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .verification-steps {
        margin-bottom: 20px;
    }
    
    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 0.9em;
    }
    
    .otp-input-group {
        gap: 6px;
    }
    
    .otp-input {
        width: 40px;
        height: 45px;
        font-size: 1.2em;
    }
    
    .feedback-message {
        font-size: 0.85em;
        padding: 8px 10px;
    }
    
    .password-strength-meter {
        margin: 10px 0;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .feedback-message,
    .otp-input,
    .step-circle,
    .spinner,
    .input-status-icon {
        animation: none !important;
        transition: none !important;
    }
}
