/* 修改密码区域样式 */
.change-container-wrapper {
    min-height: calc(100vh - 398px);
    background-color: #FFF;
}

.change-container {
    background: #FFF;
    padding: 16px 0;
    display: flex;
    justify-content: center;
}

.change-form-wrapper {
    background: #f7f8f9;
    border: 1px solid #f7f8f9;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 1200px;
}

.change-form {
    background: white;
    border-radius: 12px;
    padding: 24px 36px;
    width: 100%;
}

/* 修改密码标题样式 */
.change-header {
    position: relative;
    margin-bottom: 16px;
}

.change-title {
    font-family: 'Microsoft YaHei UI', sans-serif;
    font-weight: bold;
    font-size: 18px;
    color: #23252c;
    text-transform: uppercase;
    margin: 0;
    display: inline-block;
}

.register-link-text {
    font-family: 'Microsoft YaHei UI', sans-serif;
    font-weight: normal;
    font-size: 14px;
    color: #47494d;
    margin: 0 0 0 24px;
    display: inline-block;
}

.register-link {
    color: #fea14a;
    text-decoration: none;
    cursor: pointer;
}

.register-link:hover {
    color: #ff8d24;
    font-weight: 600;
    text-decoration: none;
}

.title-decoration {
    position: absolute;
    left: -36px;
    top: 7px;
    width: 5px;
    height: 12px;
    background: linear-gradient(to bottom, #ff8d24, #ffad1f);
    border-radius: 0 3px 3px 0;
}

/* 表单样式 */
.form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.input-container {
    display: flex;
    align-items: center;
    gap: 24px;
}

.form-label {
    font-family: 'Microsoft YaHei', sans-serif;
    font-weight: normal;
    font-size: 14px;
    color: #47494d;
    margin: 0;
    width: 76px;
    flex-shrink: 0;
    text-align: left;
}

/* 输入框样式 */
.input-wrapper {
    background: #f7f8f9;
    border: 1px solid #eeeff3;
    border-radius: 12px;
    height: 48px;
    display: flex;
    align-items: center;
    position: relative;
    width: 288px;
    transition: all 0.3s ease;
    overflow: visible;
}

.input-wrapper:focus-within {
    background: white;
    border-color: #ff8d24;
    box-shadow: 0 0 0 2px rgba(255, 141, 36, 0.1);
}

.form-input {
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Microsoft YaHei UI', sans-serif;
    font-size: 14px;
    color: #23252c;
    padding: 0 16px;
    flex: 1;
    height: 100%;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: #8f949f;
}

.form-input:focus {
    background: transparent;
}

/* 国家区号样式 */
.country-code {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 16px;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.country-code.active .dropdown-arrow img {
    transform: rotate(180deg);
}

.code-text {
    font-family: 'Microsoft YaHei UI', sans-serif;
    font-size: 14px;
    color: #23252c;
    width: 46px;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    font-size: 0;
}

.dropdown-arrow img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

/* 下拉菜单 */
.country-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: -40px;
    z-index: 1000;
    max-height: 240px;
    overflow: visible;
    display: none;
    margin-top: 5px;
    width: 252px;
    backdrop-filter: blur(6px);
    background: white;
    border: 1px solid #EEEFF3;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.country-code.active .country-dropdown {
    display: block;
}

/* 国家列表 */
.country-list {
    max-height: 240px;
    overflow-y: auto;
}

/* 自定义滚动条样式 */
.country-list::-webkit-scrollbar {
    width: 6px;
}

.country-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.country-list::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 3px;
}

.country-list::-webkit-scrollbar-thumb:hover {
    background: #ff8c5a;
}

.country-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.country-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.country-item.selected {
    background-color: rgba(255, 255, 255, 0.2);
}

.country-name {
    flex: 1;
    font-size: 14px;
}

.check-icon {
    font-size: 16px;
    font-weight: bold;
}

.country-item:last-child {
    border-bottom: none;
}

.input-divider {
    width: 1px;
    height: 14px;
    background: #cbced5;
    margin: 0 8px;
}

/* 获取验证码按钮样式 */
.get-code-btn {
    background: transparent;
    border: none;
    color: #fea14a;
    font-family: 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    cursor: pointer;
    padding: 0 16px;
    height: 100%;
    transition: color 0.3s ease;
}

.get-code-btn:hover {
    color: #ff8d24;
}

.get-code-btn:disabled {
    color: #8f949f;
    cursor: not-allowed;
}

/* 随机生成按钮样式 */
.random-btn {
    background: transparent;
    border: none;
    color: #fea14a;
    font-family: 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    cursor: pointer;
    padding: 0 16px;
    height: 100%;
    transition: color 0.3s ease;
}

.random-btn:hover {
    color: #ff8d24;
}

/* 服务条款同意样式 */
.agreement-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 100px;
}

.agreement-checkbox {
    width: 16px;
    height: 16px;
    border: 2px solid #8f949f;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
}

.agreement-checkbox:checked {
    background: #ff8d24;
    border-color: #ff8d24;
}

.agreement-label {
    font-family: 'Microsoft YaHei UI', sans-serif;
    font-size: 14px;
    color: #47494d;
    cursor: pointer;
    user-select: none;
}

/* 修改密码按钮样式 */
.form-actions {
    padding-left: 100px;
    margin:20px 0;
}

.change-btn {
    width: 288px;
    height: 42px;
    background: linear-gradient(135deg, #ff8d24, #ffad1f);
    border: none;
    border-radius: 8px;
    color: white;
    font-family: 'Microsoft YaHei UI', sans-serif;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.3;
    pointer-events: none;
}

.change-btn:enabled {
    opacity: 1;
    pointer-events: auto;
}

.change-btn:enabled:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 141, 36, 0.4);
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .change-form {
        padding: 20px;
    }

    .input-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .form-label {
        width: auto;
    }

    .input-wrapper,
    .change-btn {
        width: 100%;
        max-width: 288px;
    }

    .form-actions {
        padding-left: 0;
    }
}
