/* 登录容器 - 左右布局 */
.login-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Logo样式 */
.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 180px;
    height: auto;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* 右侧表单区域 */
.login-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 头部样式 */
.login-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.login-header h1 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: 0.8px;
}

.login-header p {
    color: #404449;
    line-height: 1.6;
}

.blue {
    color: #206b8b;
}

.login-header.grey-text {
    color: #666;
}

/* 表单样式 */
.register-message span {
    color: #666;
    display: block;
    padding: 18px 22px;
}

.register-button span {
    font-size: 14px;
    display: block;
    margin-top: 6px;
    color: #404449;
    text-align: center;
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
}

.form-group label {
    flex: 0 0 300px;
    margin-right: 15px;
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.registra-s span {
    font-size: 14px;
    color: #404449;
}

.registra-s {
    margin-bottom: 22px;
}

.form-group input {
    flex: 1;
    /* 输入框占据剩余空间 */
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: #fafafa;
}

.form-group input:focus {
    border-color: #206b8b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 140, 207, 0.15);
    background-color: #fff;
}

.form-group input::placeholder {
    color: #aaa;
    font-size: 14px;
}

.form-group input:hover {
    border-color: #999;
}

#login-captcha {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.login-text {
    border-radius: 16px;
    padding-top: 44px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.login-text>div {
    padding: 10px 20px;
}

.login-text h3 {
    font-weight: 700;
    font-size: 1.8rem;
    text-align: center;
}

.login-text p {
    font-size: 1.5rem;
}

.login-text span {
    color: rgba(34, 34, 34, .6);
    font-size: 12px;
    display: block;
}

/* 角色选择 */

.role-option {
    flex: 1;
    text-align: center;
}

.role-option input {
    display: none;
}

.role-label {
    display: block;
    padding: 12px 8px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    background-color: #fafafa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.role-option input:checked+.role-label {
    border-color: #2d8ccf;
    background-color: #e3f2fd;
    color: #1976d2;
    font-weight: 500;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(45, 140, 207, 0.15);
}

.role-label:hover {
    border-color: #999;
    background-color: #f5f5f5;
}

.register-message {
    margin: 22px 0;
    background: rgb(225, 236, 247, 0.5);
}

/* 表单底部 */
.form-footer {
    text-align: center;
    padding: 20px 0;
}

.switch-link {
    color: #206b8b;
    text-decoration: underline;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 1px solid transparent;
    padding: 2px 4px;
    border-radius: 3px;
}

.switch-link:hover {
    color: #0c3a66;
    background-color: #f0f8ff;
}

/* 表单切换样式 */
.form-hidden {
    display: none;
}

.form-active {
    display: block;
}

/* 确认密码输入框样式 */
#register-confirm-password {
    margin-bottom: 10px;
}


.checkbox-container {
    display: flex;
    justify-content: space-between;
    padding: 22px 0;
    border-radius: 8px;
}

.forget a {
    color: #206b8b;
}

.checkbox-input {
    display: none;
    /* 隐藏默认的复选框 */
}

.due-link {
    padding-top: 44px;
}

.due-link h1 {
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 5.5rem;
    position: relative;
    text-align: center;
}

.due-link h1:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    display: inline-block;
    width: 80%;
    height: 4px;
    transform: translateX(-50%);
    background-color: #206b8b;
    border-radius: 2px;
}

.ordinary_email {
    color: #000000;
    background: #f4e9da;
    padding: 10px 20px;
    display: flex;
    align-items: flex-end;
}

.ordinary_email img {
    height: 30px;
}

.ordinary_email p {
    margin: auto 0 auto 6px;

}


/* 用户选择 */
.userType {
    display: flex;
    gap: 6rem;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0px 0 20px;
    justify-content: center;
}

.user {
    display: flex;
    min-width: 300px;
    max-width: 500px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    position: relative;
    padding: 0 10px;
}

.user:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-color: #ffe0bd;
}

.user.selected {
    border-color: #ffe0bd;
    box-shadow: 0 2px 8px rgba(255, 125, 0, 0.02);
    background: #f4e9da;
}

.user img {
    width: 20%;
    padding: 10px;
    margin: auto 0;
}

.usertypeBut {
    width: 100%;
    padding: 2rem 1.5rem;
    background: transparent;
    font-weight: 700;
    margin: auto;
    position: relative;
}

.usertypeBut:focus {
    outline: none;
}

.usertypeBut p {
    font-weight: normal;
    margin-top: 1rem;
}

.usertypeBut h3 {
    font-size: 1.8rem;
    font-weight: 500;
}


.user:nth-child(2) p {
    padding: 0 1.5rem 2rem 1.5rem;
    margin-top: 0;
}

.userOne,
.userTwo {
    display: none;
    max-width: 1000px;
    margin: 2rem auto 6rem;
    padding: 3rem 4rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    animation: fadeIn 0.5s ease;
}

/* 显示选中的区域 */
.userOne.active,
.userTwo.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-text {
    margin-bottom: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.user-text span {
    font-size: 1.2rem;
    background: #e53939;
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    margin-right: 0.5rem;
}

.user-select {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.radio-btn {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.8rem 1.5rem;
    border: 1px solid #206b8b;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.radio-btn:hover {
    border-color: #206b8b;
    background: rgba(102, 126, 234, 0.05);
}

.radio-btn input[type="radio"]:checked+label {
    font-weight: bold;
    color: #206b8b;
}

.radio-btn input[type="radio"]:checked {
    accent-color: #206b8b;
}

.radio-group p {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.radio-group span {
    display: block;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.radio-group {
    margin: 1.5rem 0;
}

/* 自定义复选框样式 */

.checkbox-input {
    opacity: 0;
    position: absolute;
}

.checkbox-input:checked+.checkmark::after {
    display: block;
}

.button-group {
    width: 60%;
    margin: 0 auto;
}

.button-group p {
    font-size: 1.2rem;
    color: #206b8b;
    margin-top: 1rem;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .checkbox-container {
        padding: 12px 0;
        margin-top: 15px;
        display: block;
    }

    .checkmark {
        width: 16px;
        height: 16px;
        margin-right: 10px;
    }

    .checkbox-text {
        font-size: 14px;
    }

    .forget {
        margin-top: 10px;
    }
}

/* 响应式设计 - 平板设备 */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        max-width: 450px;
        border-radius: 10px;
    }

    .due-link h1 {
        color: #000000;
        /* 黑色 */
        font-size: 1.8rem;
        text-align: center;
        margin-top: 20px;
        margin-bottom: 30px;
        text-shadow: none;
        /* 移除可能存在的阴影 */
    }

    .logo {
        content: url('/assets/images/logo.png');
        width: 120px;
    }

    .login-text {
        padding: 1.5rem;
        margin: 1.5rem 1rem;
    }
    .mobel-margin{
        margin: 0 20px;
    }
    .login-text>div {
        padding: 1.2rem;
    }

    .login-text h3 {
        font-size: 1.2rem;
    }

    .login-text p {
        font-size: 0.95rem;
    }

    .login-text span {
        font-size: 0.8rem;
    }

    .userType {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .user {
        min-width: 90%;
        max-width: 90%;
    }

    .usertypeBut {
        font-size: 1.1rem;
        padding: 1.5rem;
    }

    .user img {
        width: 25%;
        padding: 0;
    }

    .userOne,
    .userTwo {
        padding: 1.5rem;
        margin: 1.5rem 1rem;
    }

    .user-text {
        padding: 1rem;
    }

    .user-select {
        gap: 1rem;
    }

    .radio-btn {
        padding: 0.6rem 1rem;
        flex: 1 1 40%;
    }

    .radio-group {
        padding: 1rem;
    }

    .radio-group p {
        font-size: 1rem;
    }


    .welcome-content {
        padding: 30px 20px;
        margin: 12px;
    }

    .welcome-logo img {
        max-width: 120px;
    }

    .welcome-content h2 {
        font-size: 24px;
    }

    .welcome-content p {
        font-size: 18px;
    }
    .warning-content li{
        font-size: 16px;
    }
    .welcome-button {
        padding: 12px 25px;
        font-size: 15px;
        min-width: 180px;
    }

    .register-button span {
        text-align: left;

    }

    .welcome-overlay .welcome-container h3 {
        padding: 0;
    }

    .welcome-subtitle {
        font-size: 1.4rem;
    }

    .close {
        margin: 22px !important;
        gap: 22px !important;
        flex-direction: column;
    }

    .close a {
        width: auto !important;
    }

    .welcome-section{
        padding: 10px !important;
    }

    .login-header p {
        padding: 0px 20px;
    }

    .login-header h1 {
        padding: 0px 20px;
    }

}

/* 响应式设计 - 移动设备优化 */
@media (max-width: 480px) {

    .footer {
        color: #525355 !important;
    }

    /* 移除背景图片，使用纯色背景 */
    body {
        background-image: none;
        background-color: #f8f9fa;
        height: auto;
        min-height: 100vh;
        padding: 0;
        align-items: center;
    }

    .due-link-sp {
        display: block !important;
        color: #333;
        text-align: center;
        font-family: " SC Prosper Sans", Arial, sans-serif;
        letter-spacing: 0.5px;
    }

    .due-link-sp h1 {
        font-weight: 700;
        font-size: 2.875rem;
    }

    /* 表单容器适配移动端 */
    .login-container {
        width: 100%;
        max-width: none;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: auto;
    }

    /* 右侧表单区域居中 */
    .login-right {
        padding: 0px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex: 1;
    }

    /* Logo调整 */
    .logo {
        width: 128px;
    }

    /* 头部样式优化 */
    .login-header {
        margin-top: 46px;
        margin-bottom: 25px;
        padding-bottom: 15px;
    }

    .login-header h1 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    /* 表单元素优化 */
    .form-group {
        margin-bottom: 20px;
        display: block;
        align-items: left;
    }

    .form-group label {

        flex: 0 0 100px;
        margin-bottom: 6px;
    }

    .form-group input {
        padding: 10px 15px;
        font-size: 16px;
        /* 防止iOS缩放 */
        border-width: 1px;
    }

    /* 角色选择优化 */
    .role-title {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .role-label {
        padding: 13px;
        font-size: 14px;
        border-width: 1px;
    }

    /* 按钮优化 */
    .submit-button {
        padding: 13px;
        font-size: 15px;
        margin-top: 0px;
        border-radius: 45px;
    }

    /* 表单底部优化 */
    .form-footer {
        margin-top: 20px;
        padding-top: 15px;
        font-size: 14px;
    }

    .switch-link {
        font-size: 14px;
        padding: 1px 3px;
    }

    /* 确认密码输入框 */
    #register-confirm-password {
        margin-bottom: 10px;
    }

    .login-text {
        padding: 1rem;
        margin: 1rem 1.5rem;
        gap: 0;
    }

    .login-text>div {
        padding: 1rem;
    }

    .login-text h3 {
        font-size: 1.5rem;
    }

    .login-text p {
        font-size: 1.5rem;
    }

    .login-text span {
        font-size: 1.1rem;
    }

    .userType {
        gap: 1rem;
    }

    .user {
        min-width: 95%;
        max-width: 95%;
    }

    .usertypeBut {
        font-size: 1rem;
        padding: 1.2rem;
    }

    .usertypeBut p {
        font-size: 0.85rem;
    }

    .user.selected::before {
        top: 10px;
        right: 10px;
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .userOne,
    .userTwo {
        padding: 1rem;
        margin: 1rem 0.5rem;
    }

    .user-text {
        padding: 0.8rem;
    }

    .user-text p {
        font-size: 0.9rem;
    }

    .user-select {
        flex-direction: column;
        gap: 0.8rem;
    }

    .radio-btn {
        padding: 0.8rem;
        flex: 1 1 auto;
    }

    .radio-group {
        padding: 0.8rem;
    }

    .radio-group span {
        font-size: 0.8rem;
    }

    .checkbox-label {
        font-size: 0.9rem;
    }
    .welcome-header{
        padding: 12px 20px !important;
    }
    .welcome-content {
        padding: 25px 0px !important;
    }

    .welcome-logo img {
        max-width: 100px;
    }

    .welcome-content h2 {
        font-size: 20px;
    }

    .welcome-features {
        gap: 12px;
    }

    .feature-item span:last-child {
        font-size: 13px;
    }



}

@media (max-width: 1200px) {
    .navbar-container {
        max-width: 90%;
    }

    .main-content {
        max-width: 90%;
    }

    .footer-list li {
        padding: 0 20px 4px 0;
    }

    .footer-list {
        max-width: 90%;
    }
}

/* 超小屏幕设备优化 (360px以下) */
@media (max-width: 360px) {

    .login-right {
        padding: 25px 18px;
    }

    .login-header {
        margin-top: 55px;
    }

    .login-header h1 {
        font-size: 20px;
    }

    .login-header p {
        font-size: 12px;
    }

    .form-group input {
        padding: 10px 14px;
        font-size: 12px;
    }

    .role-label {
        padding: 12px;
        font-size: 13px;
    }

    .submit-button {
        padding: 12px;
        font-size: 14px;
    }

    .logo {
        width: 55px;
        top: 12px;
        left: 12px;
    }
}

/* 竖屏小高度设备优化 */
@media (max-height: 600px) and (orientation: portrait) {
    body {
        align-items: flex-start;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .login-container {
        height: auto;
        min-height: 90vh;
    }

    .login-header {
        margin-top: 50px;
    }
}

/* 横屏优化 */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        align-items: center;
        padding: 10px 0;
    }

    .login-container {
        height: auto;
        min-height: 90vh;
        margin: 10px 0;
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .login-header {
        margin-top: 30px;
    }
}

/* 针对非常小的屏幕优化 */
@media (max-width: 320px) {
    .login-right {
        padding: 20px 10px;
    }

    .login-header {
        margin-top: 50px;
    }

    .form-group input {
        padding: 11px 12px;
    }
}

.footer {
    max-width: 1400px;
    margin: 0 auto;
    font-size: 10px;
    line-height: 18px;
    font-weight: 500;
    letter-spacing: 0px;
    text-align: center;
}

.due-link img {
    height: 40px;
}

/* 密码输入框容器 */
.password-input-container {
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
}

.password-input-container input {
    flex: 1;
    padding-right: 40px;
    /* 为眼睛图标留出空间 */
}

.username-input-container {
    width: 100%;
}

/* 显示/隐藏密码按钮 */
.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #206b8b;
}

.toggle-password:focus {
    outline: none;
    color: #206b8b;
}

/* 眼睛图标样式 */
.eye-icon,
.eye-off-icon {
    width: 20px;
    height: 20px;
}



.initial-rules {
    margin: 44px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.initial-rules a {
    display: block;
    color: #206b8b;

}

.initial-rules h3 {
    font-weight: 500;
}

.initial-rules a:hover,
.initial-buttons h3:hover {
    text-decoration: underline;

}

/* 调试用代码 */
.initial-rules h3:after {
    content: "";
    margin-left: 8px;
    width: 18px;
    height: 18px;
    background: url(/assets/images/pic002.svg) no-repeat center center;
    background-size: contain;
    display: inline-block;
    vertical-align: -2px;
}

.initial-agree-btn {
    margin: 22px 0 44px;
    border: 4px solid #f5f5f5;
    padding: 44px;
}

.initial-agree {
    margin: 44px 0;
}

.initial-buttons h3 {
    text-align: center;
    color: #206b8b;
    padding: 22px 0;
    font-weight: 500;
}

.initial-buttons h3:after {
    content: ">";
    margin-left: 8px;
    width: 1.0em;
    height: 1.0em;
    display: inline-block;
    vertical-align: -2px;
}

.initial-little span {
    display: block;
    font-size: 1.4rem;
    line-height: 1.8;
}