/* ============================================================
   登录 / 注册页面样式
   ============================================================ */

/* 主区域 */
.auth-section {
    min-height: calc(100vh - 500px);
    padding: 80px 0;
    background-color: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-wrapper {
    width: 460px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    padding: 50px 45px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 标题 */
.auth-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 0 0 10px 0;
}

.auth-subtitle {
    font-size: 14px;
    color: #999;
    text-align: center;
    margin-bottom: 40px;
}

/* 表单 */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #bbb;
    transition: color 0.2s;
}

.auth-input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 44px;
    font-size: 15px;
    color: #333;
    background-color: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    outline: none;
    transition: all 0.2s;
}

.auth-input:focus {
    border-color: #005ba6;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 91, 166, 0.1);
}

.auth-input:focus + i,
.auth-input-wrap:focus-within i {
    color: #005ba6;
}

.auth-input::placeholder {
    color: #bbb;
}

/* 记住密码 & 忘记密码 行 */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -6px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.auth-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #005ba6;
    cursor: pointer;
}

.auth-forgot {
    font-size: 14px;
    color: #005ba6;
    transition: color 0.2s;
}

.auth-forgot:hover {
    color: #004a8a;
    text-decoration: underline;
}

/* 提交按钮 */
.auth-submit-btn {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #005ba6, #0074d9);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 2px;
    margin-top: 8px;
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, #004a8a, #005ba6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 91, 166, 0.35);
}

.auth-submit-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* 分割线 */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 10px 0 0 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #e5e5e5;
}

.auth-divider span {
    font-size: 13px;
    color: #bbb;
    white-space: nowrap;
}

/* 底部切换链接 */
.auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #999;
}

.auth-switch a {
    color: #005ba6;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-switch a:hover {
    color: #004a8a;
    text-decoration: underline;
}

/* 协议勾选 */
.auth-agreement {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #999;
    line-height: 1.5;
    margin-top: -6px;
}

.auth-agreement input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #005ba6;
    cursor: pointer;
    margin-top: 1px;
    flex-shrink: 0;
}

.auth-agreement a {
    color: #005ba6;
}

.auth-agreement a:hover {
    text-decoration: underline;
}

/* 验证码行 */
.auth-code-row {
    display: flex;
    gap: 12px;
}

.auth-code-row .auth-input-wrap {
    flex: 1;
}

.auth-code-btn {
    flex-shrink: 0;
    width: 120px;
    height: 48px;
    background-color: #f0f0f0;
    color: #005ba6;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-code-btn:hover {
    background-color: #e8e8e8;
    border-color: #005ba6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-section {
        padding: 40px 15px;
    }

    .auth-wrapper {
        width: 100%;
        max-width: 460px;
        padding: 35px 25px;
    }

    .auth-title {
        font-size: 24px;
    }

    .auth-subtitle {
        margin-bottom: 30px;
    }

    .auth-input {
        height: 45px;
        font-size: 14px;
    }

    .auth-submit-btn {
        height: 46px;
        font-size: 16px;
    }

    .auth-code-btn {
        width: 110px;
        height: 45px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .auth-wrapper {
        padding: 30px 20px;
        border-radius: 8px;
    }

    .auth-title {
        font-size: 22px;
    }

    .auth-form {
        gap: 18px;
    }

    .auth-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
