/* 公共样式 - 网易游戏账号系统 */

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* 页面布局 —— 去除周围背景/留白装饰，仅保留中间白色卡片 */
body {
    font-family: 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
    min-height: 100vh;
    background: white;
    margin: 0;
    padding: 0;
}

/* 主容器 —— 撑满视口宽度，宽:高 = 10:7，内容超出卡片在卡片内上下滚动 */
.main-container {
    background: white;
    border-radius: 0;
    box-shadow: none;
    width: 100vw;
    max-width: none;
    aspect-ratio: 10 / 7;
    padding: 0;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Logo区域 */
.logo-section {
    text-align: center;
    padding: 40px 20px 30px;
    background: white;
    position: relative;
}

.logo {
    max-width: 280px;
    height: auto;
}

/* 返回按钮 */
.back-btn {
    position: absolute;
    left: 15px;
    top: 20px;
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #e0e0e0;
}

/* 表单区域 */
.form-section {
    padding: 20px 30px 30px;
}

/* 消息提示 */
.error-message, .success-message {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 13px;
    display: none;
    text-align: center;
}

.error-message {
    background: #ffebee;
    color: #c62828;
}

.success-message {
    background: #e8f5e9;
    color: #2e7d32;
}

/* 表单组 */
.form-group {
    margin-bottom: 15px;
}

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

/* 输入框行 - 带国家代码 */
.input-row {
    display: flex;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
}

.input-row:focus-within {
    border-color: #FF5050;
    box-shadow: 0 0 0 2px rgba(255, 80, 80, 0.1);
}

.country-code {
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-right: 1px solid #ddd;
    background: #fafafa;
    color: #333;
    font-size: 15px;
    white-space: nowrap;
}

/* 输入框 */
.form-control {
    flex: 1;
    padding: 14px 16px;
    border: none;
    font-size: 15px;
    outline: none;
    background: transparent;
}

.form-control::placeholder {
    color: #bbb;
}

/* 单独的输入框 */
.form-group.single .form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.form-group.single .form-control:focus {
    border-color: #FF5050;
    box-shadow: 0 0 0 2px rgba(255, 80, 80, 0.1);
}

/* 输入框包装器 - 带按钮 */
.input-wrapper {
    display: flex;
    gap: 8px;
}

.input-wrapper .form-control {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.input-wrapper .form-control:focus {
    border-color: #FF5050;
    box-shadow: 0 0 0 2px rgba(255, 80, 80, 0.1);
}

/* 获取验证码按钮 */
.btn-code {
    padding: 14px 18px;
    background: #FF5050;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 110px;
}

.btn-code:hover {
    background: #ff3838;
}

.btn-code:active:not(:disabled) {
    transform: scale(0.98);
}

.btn-code:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* 提交按钮 */
.btn-submit {
    width: 100%;
    padding: 15px;
    background: #FF5050;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-submit:hover {
    background: #ff3838;
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* 页脚链接 */
.footer-links {
    margin-top: 20px;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.link {
    color: #FF5050;
    text-decoration: none;
    font-size: 14px;
}

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

.divider-text {
    color: #999;
    font-size: 14px;
    margin-bottom: 5px;
}

/* 密码强度指示器 */
.password-strength {
    margin-top: 6px;
}

.strength-bar {
    height: 3px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.strength-weak { background: #FF5050; width: 33%; }
.strength-medium { background: #ffa726; width: 66%; }
.strength-strong { background: #66bb6a; width: 100%; }

/* 提示信息框 */
.info-box {
    background: #fff5f5;
    border-left: 4px solid #FF5050;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.info-box p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* 固定消息提示 */
.message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    animation: slideDown 0.3s ease;
    max-width: 90%;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.message.error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.message.success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.message.info {
    background: #eef;
    color: #33c;
    border: 1px solid #ccf;
}

/* 移动端优化 */
@media (max-width: 480px) {
    .main-container {
        max-width: 100%;
    }

    .logo-section {
        padding: 30px 20px 25px;
    }

    .logo {
        max-width: 240px;
    }

    .form-section {
        padding: 15px 20px 25px;
    }

    .country-code {
        padding: 0 12px;
        font-size: 14px;
    }

    .form-control {
        padding: 13px 14px;
        font-size: 14px;
    }

    .form-group.single .form-control {
        padding: 13px 14px;
        font-size: 14px;
    }

    .input-wrapper .form-control {
        padding: 13px 14px;
        font-size: 14px;
    }

    .btn-code {
        min-width: 100px;
        font-size: 13px;
        padding: 13px 14px;
    }
}

