/* ======================================== */
/* Forgot Password Page Styles */
/* ======================================== */

/* Card Container */
.card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Form Steps */
.form-step {
    display: none;
}

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

/* OTP Input Boxes */
.otp-input {
    width: 3rem;
    height: 3.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.2s;
    text-transform: uppercase;
}

.otp-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.otp-input.error {
    border-color: #ef4444;
    animation: shake 0.3s;
}

.otp-input.success {
    border-color: #10b981;
}

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

/* Buttons */
.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-primary:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

/* Messages */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-success {
    background-color: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.alert-error {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.alert-info {
    background-color: #dbeafe;
    border: 1px solid #93c5fd;
    color: #1e40af;
}

.alert-warning {
    background-color: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
}

/* Loading Spinner */
.spinner {
    border: 2px solid #f3f4f6;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-left: 0.5rem;
}

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

/* Responsive Design */
@media (max-width: 640px) {
    .card {
        padding: 1.5rem;
    }
    
    .otp-input {
        width: 2.5rem;
        height: 3rem;
        font-size: 1.25rem;
    }
}

/* Primary color for links */
.text-primary {
    color: #3b82f6;
}

.text-primary:hover {
    color: #2563eb;
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Password strength indicator */
.password-strength {
    margin-top: 0.5rem;
}

.password-strength-bar {
    height: 0.25rem;
    background-color: #e5e7eb;
    border-radius: 0.125rem;
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    transition: all 0.3s;
    border-radius: 0.125rem;
}

.password-strength-fill.weak {
    width: 33%;
    background-color: #ef4444;
}

.password-strength-fill.medium {
    width: 66%;
    background-color: #f59e0b;
}

.password-strength-fill.strong {
    width: 100%;
    background-color: #10b981;
}

.password-strength-text {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.password-strength-text.weak {
    color: #ef4444;
}

.password-strength-text.medium {
    color: #f59e0b;
}

.password-strength-text.strong {
    color: #10b981;
}
