/**
 * YMY Theme - Reset Password Page Styles
 *
 * @package YMY
 * @since 1.0.0
 */

/* ==========================================================================
   1. Reset Password Page Container
   ========================================================================== */

.ymy-page-reset-password {
    min-height: calc(100vh - 300px);
    padding: 60px 0;
    background: var(--ymy-bg-body);
}

/* ==========================================================================
   2. Reset Password Container
   ========================================================================== */

.ymy-reset-password-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--ymy-bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   3. 步骤导航标签
   ========================================================================== */

.ymy-reset-tabs {
    display: flex;
    justify-content: space-between;
    background: var(--ymy-bg-secondary, #f7f7f7);
    border-bottom: 2px solid var(--ymy-border-light, #e5e5e5);
    padding: 0;
}

.ymy-reset-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    cursor: default;
    position: relative;
    transition: all 0.3s;
}

.ymy-reset-tab .tab-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #d9d9d9;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.ymy-reset-tab .tab-label {
    font-size: 14px;
    color: #999;
    transition: color 0.3s;
}

/* 激活状态 */
.ymy-reset-tab.active .tab-number {
    background: var(--ymy-accent, #667eea);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ymy-reset-tab.active .tab-label {
    color: var(--ymy-accent, #667eea);
    font-weight: 600;
}

/* 已完成状态 */
.ymy-reset-tab.completed .tab-number {
    background: #52c41a;
}

.ymy-reset-tab.completed .tab-label {
    color: #52c41a;
}

/* ==========================================================================
   4. 步骤内容区域
   ========================================================================== */

.ymy-reset-content {
    padding: 40px 50px;
}

.ymy-reset-panel {
    display: none;
}

.ymy-reset-panel.is-active {
    display: block;
}

/* ==========================================================================
   5. 表单样式
   ========================================================================== */

.ymy-reset-form,
.ymy-reset-success-message,
.ymy-reset-error-message {
    text-align: center;
}

.ymy-reset-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--ymy-text-primary);
    margin: 0 0 12px;
}

.ymy-reset-text {
    font-size: 14px;
    color: var(--ymy-text-secondary);
    margin: 0 0 32px;
    line-height: 1.6;
}

/* 表单组 */
.ymy-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.ymy-form-group .ymy-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--ymy-border-color, #d9d9d9);
    border-radius: 6px;
    font-size: 14px;
    color: var(--ymy-text-primary);
    background: var(--ymy-bg-card);
    transition: all 0.3s;
}

.ymy-form-group .ymy-input:focus {
    outline: none;
    border-color: var(--ymy-accent, #667eea);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ymy-form-group .ymy-input::placeholder {
    color: #bfbfbf;
}

/* 按钮 */
.ymy-btn-block {
    width: 100%;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.ymy-btn-primary {
    background: var(--ymy-accent, #667eea);
    color: #fff;
}

.ymy-btn-primary:hover {
    background: var(--ymy-accent-hover, #5568d3);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ymy-btn-primary:disabled {
    background: #d9d9d9;
    cursor: not-allowed;
}

/* ==========================================================================
   6. 消息提示
   ========================================================================== */

.ymy-reset-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: left;
}

.ymy-message-success {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.ymy-message-error {
    background: #fff1f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}

/* ==========================================================================
   7. 成功/错误提示框
   ========================================================================== */

.ymy-reset-success-message {
    padding: 40px 20px;
}

.ymy-reset-success-message .ymy-reset-title {
    color: #52c41a;
}

.ymy-reset-error-message {
    padding: 40px 20px;
}

.ymy-reset-error-message .ymy-reset-title {
    color: #ff4d4f;
}

/* ==========================================================================
   8. 链接
   ========================================================================== */

.ymy-form-links {
    text-align: center;
    margin-top: 16px;
}

.ymy-form-links a {
    color: var(--ymy-accent, #667eea);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.ymy-form-links a:hover {
    color: var(--ymy-accent-hover, #5568d3);
}

/* ==========================================================================
   9. 响应式设计
   ========================================================================== */

@media (max-width: 768px) {
    .ymy-page-reset-password {
        padding: 40px 0;
    }

    .ymy-reset-password-container {
        margin: 0 16px;
    }

    .ymy-reset-content {
        padding: 30px 24px;
    }

    .ymy-reset-tab {
        padding: 16px 8px;
    }

    .ymy-reset-tab .tab-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .ymy-reset-tab .tab-label {
        font-size: 12px;
    }

    .ymy-reset-title {
        font-size: 20px;
    }

    .ymy-reset-text {
        font-size: 13px;
    }
}
