/* Password Recovery Form - Styles */

.password-recovery-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.recovery-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 440px;
    padding: 48px 40px;
}

.logo {
    text-align: center;
    margin-bottom: 32px;
}

.logo h1 {
    color: #667eea;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.logo p {
    color: #6b7280;
    font-size: 14px;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
    gap: 8px;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e5e7eb;
    transition: all 0.3s;
}

.step-dot.active {
    background: #667eea;
    width: 24px;
    border-radius: 4px;
}

.step-content h2 {
    color: #111827;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.subtitle {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 32px;
    line-height: 1.5;
}

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

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

.input-wrapper {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control.error {
    border-color: #ef4444;
}

.form-control.success {
    border-color: #10b981;
}

.toggle-password,
.confirm-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #9ca3af;
}

.confirm-icon.success {
    color: #10b981;
}

.confirm-icon.error {
    color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Code Inputs */
.code-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.code-input {
    width: 56px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s;
}

.code-input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.resend-code {
    text-align: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.resend-code a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.resend-code a:hover {
    text-decoration: underline;
}

.resend-code .timer {
    color: #6b7280;
}

/* Password Strength */
.password-strength {
    margin-top: 12px;
}

.strength-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s;
    border-radius: 2px;
}

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

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

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

.strength-text {
    font-size: 13px;
    font-weight: 500;
}

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

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

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

/* Password Requirements */
.password-requirements {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #6b7280;
}

.requirement:last-child {
    margin-bottom: 0;
}

.requirement .icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.requirement.met {
    color: #10b981;
}

.requirement.met .icon {
    border-color: #10b981;
    background: #10b981;
    color: white;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-block {
    display: block;
    margin-bottom: 16px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

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

.btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

/* Success Icon */
.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #d1fae5;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
}

/* Back to Login */
.back-to-login {
    text-align: center;
    margin-top: 24px;
}

.back-to-login a {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
}

.back-to-login a:hover {
    color: #667eea;
}

/* Alert */
#alert-container {
    margin-bottom: 24px;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* Responsive */
@media (max-width: 480px) {
    .recovery-card {
        padding: 32px 24px;
    }
    
    .code-input {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}