/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 主容器 */
.main {
    width: 100%;
    height: 500px;
    background: linear-gradient(#1bd8c8, #03828b);
    margin-top: 20px;
    padding: 15px 0px;
    /* width: 100%; */
    /* min-height: 100vh; */

    /* padding: 20px; */
}
.main .mc{
    width: 1200px;
    margin:0 auto;
    display: flex;
    justify-content: right;
    align-items: center;
}

/* 登录注册容器 */
.authContainer {
    width: 100%;
    max-width: 430px;
    height: 477px;
    background-color: white;
    /* border-radius: 20px; */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    padding: 40px;
    backdrop-filter: blur(10px);
}

/* 标题 */
.title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 14px;
    color: #333;
    /* background: linear-gradient(270deg,  #1bd8c8 0%, #03828b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; */
}

/* 选项卡样式 */
.tabs {
    display: flex;
    margin-bottom: 25px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f8f9fa;
    padding: 4px;
}

.tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    color: #666;
    border-radius: 2px;
}

.tab.active {
    background-color: white;
    color: #03828b;
    box-shadow: 0 4px 12px rgba(122, 183, 186, 0.2);
}

/* 表单区域 */
.formSection {
    display: none;
}

.formSection.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 输入框容器 */
.inputGroup {
    margin-bottom: 20px;
    position: relative;
}

/* 输入框 */
.input {
    width: 100%;
    height: 52px;
    border-radius: 6px;
    padding: 0 50px 0 16px;
    font-size: 16px;
    border: 2px solid #e1e5eb;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.input:focus {
    outline: none;
    border-color: #03828b;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(189, 224, 226, 0.3);
}

/* 密码输入框特殊样式 */
.password-input {
    padding-right: 50px !important;
}

/* 验证码区域 - 保持左右结构 */
.codeGroup {
    display: flex;
    gap: 10px;
}

.codeGroup .input {
    flex: 1;
    min-width: 0; /* 防止flex元素溢出 */
}

/* 发送验证码按钮 */
.sendCodeBtn {
    padding: 0 20px;
    background: linear-gradient(135deg, #1bd8c8 0%, #03828b 100%);
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    min-width: 120px;
}

.sendCodeBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(122, 183, 186, 0.3);
}

.sendCodeBtn:disabled {
    background: #a0a7d0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 忘记密码链接 */
.forgotLink {
    text-align: right;
    margin-bottom: 20px;
}

.forgotLink a {
    color: #03828b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.forgotLink a:hover {
    text-decoration: underline;
}

/* 主按钮 */
.mainBtn {
    width: 100%;
    height: 52px;
    border-radius: 40px;
    background: linear-gradient(135deg, #1bd8c8 0%, #03828b 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mainBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(122, 183, 186, 0.3);
}

/* 注册/登录切换链接 */
.switchLink {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

.switchLink a {
    color: #03828b;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.switchLink a:hover {
    text-decoration: underline;
}

/* 简约线条图标样式 */
.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s;
}

.toggle-password:hover {
    color: #03828b;
}

/* 简约线条眼睛图标 */
.eye-icon {
    width: 20px;
    height: 20px;
    position: relative;
    transition: all 0.3s;
}

.eye-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 100;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modalContent {
    background-color: white;
    /* border-radius: 20px; */
    width: 90%;
    max-width: 400px;
    padding: 30px;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modalHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modalTitle {
    color: #333;
    font-size: 18px;
    font-weight: 700;
    /* background: linear-gradient(135deg, #1bd8c8 0%, #03828b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; */
}

.closeModal {
    background: none;
    border: none;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.closeModal:hover {
    background-color: #f5f5f5;
    color: #333;
}

/* 修改后的步骤指示器样式 */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    gap: 30px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* 步骤圆圈样式 */
.stepCircle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e1e5eb;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    border: 2px solid #e1e5eb;
}

/* 当前步骤样式 */
.step.active .stepCircle {
    background:#03828b;
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(122, 183, 186, 0.3);
}

/* 已完成步骤样式 */
.step.completed .stepCircle {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

/* 步骤名称样式 */
.stepName {
    font-size: 14px;
    color: #888;
    margin-top: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

/* 当前步骤名称样式 */
.step.active .stepName {
    color: #03828b;
    font-weight: 600;
}

/* 已完成步骤名称样式 */
.step.completed .stepName {
    color: #10b981;
    font-weight: 600;
}

/* 步骤连接线 */
.stepLine {
    position: absolute;
    top: 18px;
    left: calc(100% + 5px);
    width: 30px;
    height: 2px;
    background: #e1e5eb;
}

/* 已完成步骤的连接线样式 */
.step.completed .stepLine {
    background: linear-gradient(to right, #10b981, #03828b);
}

/* 最后一个步骤不需要连接线 */
.step:last-child .stepLine {
    display: none;
}

/* 步骤内容 */
.stepContent {
    display: none;
}

.stepContent.active {
    display: block;
}

/* 模态框底部按钮 */
.modalFooter {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 10px;
}

.modalBtn {
    flex: 1;
    height: 48px;
    border-radius: 40px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.modalBtn.primary {
    background: linear-gradient(135deg, #1bd8c8 0%, #03828b 100%);
    color: white;
}

.modalBtn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(122, 183, 186, 0.3);
}

.modalBtn.secondary {
    background-color: #f8f9fa;
    color: #666;
    border: 2px solid #e1e5eb;
}

.modalBtn.secondary:hover {
    background-color: #e9ecef;
}
.foot {
    height: 80px;
    line-height: 80px;
    color: #8b8b8b;
    text-align: center;
    border-top: 1px solid #ccc;
}
form label.error {
    color: red;
    margin-left: 5px;
}

.error{
    border-color:red;
}

.mc img {
    width: 550px;
    margin-top: 5px;
    margin-right:200px;
}

@media screen and (min-width: 750px) and (max-width: 992px){
    .mc img {
        width: 400px;
        margin-top: 5px;
    }

    .m-box {
        width: 330px;
        /*margin: 0 auto;*/
        float: right;
        padding: 30px 30px;
        height: 340px;
    }
}
@media screen and  (max-width: 749px){
    form label.error {
        color: red;
        margin-left: 5px;
        font-size: 12px;
    }

    .mc img {
        display: none;
    }
}