/* 基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0f2f5;
    padding: 15px;
}

/* 主容器布局 */
.auth-container {
    display: flex;
    background: #fff;
    width: 1000px;
    max-width: 100%;
    height: 650px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* 左侧 Banner */
.side-banner {
    flex: 1.2;
    background: url('../img/banner.jpg?v=1') center/cover no-repeat;
    position: relative;
}

.side-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    /* background: rgba(0,0,0,0.3); */
}

.banner-text {
    position: absolute;
    bottom: 50px;
    left: 40px;
    color: white;
    z-index: 10;
}

/* 右侧表单区 */
.form-section {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-panel {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.form-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    font-size: 26px;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: #007bff;
}

.code-row {
    display: flex;
    gap: 10px;
}

.get-code-btn {
    white-space: nowrap;
    padding: 0 15px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
}

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

.notice-card {
    background: #fff9db;
    border: 1px solid #ffe066;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.notice-card p {
    font-size: 12px;
    color: #856404;
    line-height: 1.6;
}

.primary-btn {
    width: 100%;
    height: 50px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.primary-btn:hover {
    background: #0056b3;
}

.link-footer {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.link-footer a {
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
}

/* 响应式适配 */
@media (max-width: 850px) {
    .side-banner {
        display: none;
    }

    .auth-container {
        height: auto;
        box-shadow: none;
        background: transparent;
    }

    body {
        background: #fff;
    }
}
