/* 模态框样式 */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.auth-modal.active {
    display: flex;
    animation: modalBackdropFadeIn 0.3s ease-out;
}

@keyframes modalBackdropFadeIn {
    from { background-color: rgba(0, 0, 0, 0); }
    to { background-color: rgba(0, 0, 0, 0.5); }
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(255, 140, 0, 0.2);
    border: 1px solid rgba(255, 140, 0, 0.1);
    width: 100%;
    max-width: 400px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #333;
}

.auth-modal h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #FF8C00;
    font-size: 24px;
    text-align: center;
    font-weight: 600;
    position: relative;
}

.auth-modal h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #FF8C00, #FFB366);
    margin: 8px auto 0;
    border-radius: 2px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #FF8C00;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.1);
}

/* 输入验证状态样式 */
.form-group input.valid {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.05);
}

.form-group input.invalid {
    border-color: #F44336;
    background-color: rgba(244, 67, 54, 0.05);
}

/* 错误消息样式 */
.error-message {
    color: #F44336;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.error-message.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #FF8C00;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #E67E00;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
}

.switch-form {
    margin-top: 20px;
    text-align: center;
    color: #666;
}

.auth-modal .switch-form a {
    color: #FF8C00;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    display: inline-block;
}

.auth-modal .switch-form a:hover {
    color: #E67E00;
}

.auth-modal .switch-form a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #FF8C00;
    transition: width 0.3s ease;
}

.auth-modal .switch-form a:hover:after {
    width: 100%;
}

/* 按钮组样式 - 仅在模态框内 */
.auth-modal .group_efa0f387-9a7d-4404-859b-be0979b60706 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* 登录按钮样式 - 仅在模态框内 */
.auth-modal .button_82b02329-8731-480d-ae80-f3d0cabd20e3 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #FF8C00;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-modal .button_82b02329-8731-480d-ae80-f3d0cabd20e3:hover {
    background-color: #E67E00;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
}

/* 确保按钮内部内容居中 - 仅在模态框内 */
.auth-modal .str-button__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 确保按钮文本样式一致 - 仅在模态框内 */
.auth-modal .str-button__inner-value p {
    margin: 0;
    padding: 0;
    color: white;
}

/* 密码要求提示样式 */
.auth-modal .password-requirements {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    background-color: #f9f9f9;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #ddd;
}

.auth-modal .password-requirements ul {
    margin: 5px 0 0 15px;
    padding-left: 0;
}

.auth-modal .password-requirements ul ul {
    margin-top: 2px;
}

.auth-modal .password-requirements li {
    margin-bottom: 2px;
}
