/* 认证页面样式 */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-container {
    display: flex;
    min-height: 100vh;
}

.auth-left {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}
.brand {
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.brand-icon {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 35px;
}
.brand-icon img {
    width: 200%;
    height: 200%;
    object-fit: contain;
    border-radius: 12px;
}
.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    text-align: left;
    margin-left: 50px;
}
.brand-text p {
    font-size: 18px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

/* 忘记密码弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 32px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    margin-top: 16px;
}

.sms-code-group {
    display: flex;
    gap: 12px;
}

.sms-code-group input {
    flex: 1;
}

.sms-send-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.sms-send-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.sms-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}



.features {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-text h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.feature-text p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-box {
    background: white;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tab-btn.active {
    color: #ff9999;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ff9999;
}

.tab-btn:hover {
    color: #ff9999;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.auth-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #ff9999;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-link {
    color: #ff9999;
    text-decoration: none;
    font-size: 14px;
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-btn {
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-btn.primary {
    background: linear-gradient(135deg, #ff9999 0%, #ff6666 100%);
    color: white;
}

.auth-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 102, 0.4);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
    color: #999;
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-left {
        padding: 40px 20px;
        text-align: center;
    }

    .brand {
        align-items: center;
        margin-bottom: 40px;
    }

    .brand-icon {
        margin-left: 0;
    }

    .brand-text {
        margin-left: 0;
        align-items: center;
        text-align: center;
    }

    .brand h1 {
        font-size: 32px;
    }

    .features {
        display: none;
    }

    .auth-right {
        padding: 20px;
    }

    .auth-box {
        padding: 30px 20px;
    }
}

/* ============================================
   移动端自适应 - 手机 (≤480px)
   ============================================ */
@media (max-width: 480px) {
    .auth-left {
        padding: 30px 16px;
        flex: 0 0 auto;
    }

    .brand {
        margin-bottom: 20px;
        gap: 10px;
    }

    .brand-icon {
        width: 60px;
        height: 60px;
        margin-left: 0;
    }

    .brand-icon img {
        width: 150%;
        height: 150%;
    }

    .brand-text {
        margin-left: 0;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .brand-text p {
        font-size: 14px;
    }

    .auth-right {
        padding: 16px;
        flex: 1;
    }

    .auth-box {
        padding: 24px 16px;
        max-width: 100%;
        border-radius: 12px;
    }

    .auth-tabs {
        margin-bottom: 20px;
    }

    .tab-btn {
        font-size: 14px;
        padding: 10px;
    }

    .tab-content h2 {
        font-size: 22px;
    }

    .auth-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .auth-form {
        gap: 16px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .form-options {
        font-size: 12px;
    }

    .forgot-link {
        font-size: 13px;
    }

    .auth-btn {
        padding: 12px;
        font-size: 15px;
    }

    .auth-footer {
        margin-top: 20px;
        font-size: 11px;
    }

    /* 忘记密码弹窗移动端适配 */
    .modal-overlay {
        padding: 16px;
        align-items: flex-end;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        padding: 24px 16px;
        border-radius: 16px 16px 0 0;
    }

    .modal-header {
        margin-bottom: 16px;
    }

    .modal-header h3 {
        font-size: 18px;
    }

    .modal-close {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }

    .sms-code-group {
        flex-direction: column;
        gap: 8px;
    }

    .sms-code-group input {
        width: 100%;
        padding: 10px 12px;
    }

    .sms-send-btn {
        width: 100%;
        padding: 10px 14px;
        font-size: 12px;
    }
}

/* ============================================
   平板 (481px-768px)
   ============================================ */
@media (min-width: 481px) and (max-width: 768px) {
    .auth-left {
        padding: 40px 30px;
    }

    .brand-icon {
        margin-left: 0;
    }

    .brand-text {
        margin-left: 0;
        align-items: center;
        text-align: center;
    }

    .auth-right {
        padding: 30px;
    }

    .auth-box {
        max-width: 420px;
    }
}

