/**
 * 注册页样式
 * Let's speak now! - 油管英语口语学习网站
 */

/* ==================== 基础重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== 页面布局 ==================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #a8e6cf 0%, #88d8e8 50%, #e8c8d4 100%);
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 420px;
}

/* ==================== 卡片样式 ==================== */
.card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* ==================== Logo ==================== */
.logo {
    text-align: center;
    margin-bottom: 24px;
}

/* ==================== 标题样式 ==================== */
.title {
    font-size: 26px;
    font-weight: 700;
    color: #333333;
    text-align: center;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 14px;
    color: #5bacb8;
    text-align: center;
    margin-bottom: 28px;
}

/* ==================== 步骤指示器 ==================== */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    gap: 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    border: 2px solid #d9d9d9;
    color: #999999;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    border-color: #22c55e;
    color: #22c55e;
}

.step.completed .step-circle {
    border-color: #22c55e;
    background-color: #22c55e;
    color: #ffffff;
}

.step-text {
    font-size: 13px;
    color: #999999;
    transition: color 0.3s ease;
}

.step.active .step-text {
    color: #22c55e;
}

.step.completed .step-text {
    color: #22c55e;
}

.step-line {
    width: 50px;
    height: 1px;
    background-color: #d9d9d9;
    margin: 0 12px;
}

/* ==================== 表单样式 ==================== */
.form {
    margin-bottom: 24px;
}

.form.hidden {
    display: none;
}

.form-group {
    margin-bottom: 16px;
}

.label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 8px;
}

.input {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    color: #333333;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease;
}

.input::placeholder {
    color: #c0c0c0;
}

.input:focus {
    border-color: #5bacb8;
}

.input.error {
    border-color: #ef4444;
}

/* ==================== 按钮样式 ==================== */
.btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-verify {
    background-color: #c0c0c0;
    color: #ffffff;
}

.btn-verify:hover {
    background-color: #a0a0a0;
}

.btn-verify.active {
    background: linear-gradient(135deg, #7dd3c0 0%, #c9a8c8 100%);
}

.btn-verify.active:hover {
    opacity: 0.9;
}

.btn-submit {
    background: linear-gradient(135deg, #7dd3c0 0%, #c9a8c8 100%);
    color: #ffffff;
}

.btn-submit:hover {
    opacity: 0.9;
}

/* ==================== 分隔线 ==================== */
.divider {
    height: 1px;
    background-color: #e5e5e5;
    margin-bottom: 20px;
}

/* ==================== 底部链接 ==================== */
.footer {
    text-align: center;
}

.login-link {
    font-size: 13px;
    color: #999999;
    margin-bottom: 12px;
}

.login-link a {
    color: #5bacb8;
    text-decoration: none;
    margin-left: 4px;
}

.login-link a:hover {
    text-decoration: underline;
}

.contact-info {
    font-size: 12px;
    color: #999999;
}

.wechat {
    color: #5bacb8;
}

/* ==================== 错误提示 ==================== */
.error-message {
    font-size: 12px;
    color: #ef4444;
    margin-top: 6px;
    display: none;
}

.error-message.show {
    display: block;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 480px) {
    .card {
        padding: 32px 24px;
    }

    .title {
        font-size: 22px;
    }

    .steps {
        gap: 0;
    }

    .step-line {
        width: 30px;
        margin: 0 8px;
    }

    .step-text {
        font-size: 12px;
    }
}

/* 小屏幕 (手机) 增强适配 */
@media (max-width: 375px) {
    body {
        padding: 16px;
    }
    
    .container {
        max-width: 343px;
    }
    
    .card {
        padding: 28px 20px;
    }
    
    .logo img {
        width: 60px;
        height: 60px;
    }
    
    .title {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .subtitle {
        font-size: 13px;
        margin-bottom: 24px;
    }
    
    .steps {
        margin-bottom: 24px;
    }
    
    .step-circle {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .step-text {
        font-size: 11px;
    }
    
    .step-line {
        width: 24px;
        margin: 0 6px;
    }
    
    .form-group {
        margin-bottom: 14px;
    }
    
    .label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .input {
        padding: 12px 14px;
        font-size: 13px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .divider {
        margin-bottom: 16px;
    }
    
    .login-link {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .contact-info {
        font-size: 11px;
    }
}
