/**
 * Security Features Styles
 * Email verification, captcha, password strength
 */

/* Email verification row */
.email-verify-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.email-verify-row .email-input {
    flex: 1;
}

.verify-btn {
    min-width: 120px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

.verify-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Captcha container */
.captcha-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.captcha-image {
    height: 50px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.captcha-image:hover {
    border-color: #667eea;
}

.captcha-refresh {
    padding: 8px 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    color: #64748b;
    transition: all 0.2s;
}

.captcha-refresh:hover {
    background: #e2e8f0;
    color: #334155;
}

.captcha-input {
    flex: 1;
    max-width: 150px;
}

/* Password strength indicator */
.password-strength {
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.password-strength.very-weak {
    background: #fef2f2;
    color: #ef4444;
}

.password-strength.weak {
    background: #fff7ed;
    color: #f97316;
}

.password-strength.fair {
    background: #fefce8;
    color: #eab308;
}

.password-strength.strong {
    background: #f0fdf4;
    color: #22c55e;
}

.password-strength.very-strong {
    background: #ecfdf5;
    color: #10b981;
}

/* Password strength bar */
.strength-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

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

.strength-bar-fill.score-0 { width: 20%; background: #ef4444; }
.strength-bar-fill.score-1 { width: 40%; background: #f97316; }
.strength-bar-fill.score-2 { width: 60%; background: #eab308; }
.strength-bar-fill.score-3 { width: 80%; background: #22c55e; }
.strength-bar-fill.score-4 { width: 100%; background: #10b981; }

/* Login lockout message */
.lockout-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.lockout-message .countdown {
    font-weight: 600;
    font-size: 18px;
    margin-top: 5px;
}

/* Security badge */
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #f0fdf4;
    color: #16a34a;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.security-badge::before {
    content: "🔒";
}

/* Verification status */
.verify-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    margin-left: 10px;
}

.verify-status.verified {
    color: #16a34a;
}

.verify-status.unverified {
    color: #dc2626;
}

.verify-status.verified::before {
    content: "✓";
}

.verify-status.unverified::before {
    content: "✗";
}
