/* 强制密码更改表单样式 */
.force_password_change_form {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.force_password_change_form h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.force_password_change_form .alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.force_password_change_form .alert-warning {
    color: #8a6d3b;
    background-color: #fcf8e3;
    border-color: #faebcc;
}

.force_password_change_form .form-group {
    margin-bottom: 15px;
}

.force_password_change_form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.force_password_change_form input[type="password"],
.force_password_change_form input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
    font-size: 14px;
}

.force_password_change_form input[type="password"]:focus,
.force_password_change_form input[type="text"]:focus {
    border-color: #3c8dbc;
    outline: none;
    box-shadow: 0 0 5px rgba(60, 141, 188, 0.3);
}

.force_password_change_form .password-input-wrap {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.force_password_change_form .password-input-wrap input[type="password"],
.force_password_change_form .password-input-wrap input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: 38px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.force_password_change_form .password-eye-toggle {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    margin-left: -1px;
    border: 1px solid #ddd;
    border-radius: 0 3px 3px 0;
    background: #f8fafc;
    color: #4b5563;
    cursor: pointer;
}

.force_password_change_form .password-eye-toggle:hover,
.force_password_change_form .password-eye-toggle:focus,
.force_password_change_form .password-eye-toggle.is-visible {
    color: #111827;
}

.force_password_change_form .password-eye-icon {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.force_password_change_form button {
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.force_password_change_form button.btn-primary {
    background-color: #3c8dbc;
    color: white;
}

.force_password_change_form button.btn-primary:hover {
    background-color: #367fa9;
}

.force_password_change_form button.btn-primary:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

/* 消息样式 */
.message {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 3px;
    display: none;
}

.message.success {
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
}

.message.error {
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .force_password_change_form {
        margin: 10px;
        padding: 15px;
    }
}
