/* 认证相关样式 */
.captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-row input {
    flex: 1;
    min-width: 120px;
}

/* 输入框placeholder样式 */
.form-group input::placeholder {
    color: #a0a4a8;
    font-style: italic;
    opacity: 1; /* 确保在Firefox中正确显示 */
}

.form-group input:focus::placeholder {
    color: #c8ccd0;
}

.captcha-container {
    display: flex;
    gap: 5px;
    align-items: center;
}

.captcha-image {
    width: 100px;
    height: 40px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #333;
    user-select: none;
}

.captcha-refresh {
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.3s ease;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-refresh:hover {
    background: var(--primary);
}

.email-verify-container {
    margin-bottom: 20px;
}

.verify-code-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.verify-code-input {
    flex: 1;
}

.send-code-btn {
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.send-code-btn:hover:not(:disabled) {
    background: var(--primary);
}

.send-code-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 验证码容器样式 - 确保输入框和按钮在同一行 */
.verification-code-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.verification-code-container input {
    flex: 1;
    min-width: 120px;
}

.btn-send-code {
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
}

.btn-send-code:hover:not(:disabled) {
    background: var(--primary);
}

.btn-send-code:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.countdown-text {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 5px;
}

.form-error {
    color: var(--error);
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.form-error.show {
    display: block;
}

.password-strength {
    margin-top: 5px;
    height: 4px;
    border-radius: 2px;
    background: #eee;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
}

.strength-weak {
    background: var(--error);
    width: 33%;
}

.strength-medium {
    background: var(--warning);
    width: 66%;
}

.strength-strong {
    background: var(--success);
    width: 100%;
}

.password-requirements {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 5px;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px;
}

.requirement.met {
    color: var(--success);
}

.requirement.unmet {
    color: var(--text-light);
}

.requirement-icon {
    font-size: 0.7rem;
}
