﻿* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 32px;
}

@media (min-width: 1350.1px) {
    html {
        font-size: 32px;
    }
    .message-container {
        font-size: 16px;
    }
    .login-main {
        width: 38rem;
    }
}

@media (max-width: 1350px) {
    html {
        font-size: 24px;
    }
    .message-container {
        font-size: 16px;
    }
    .login-main {
        width: 33rem;
    }
}

@media (max-width: 740px) {
    html {
        font-size: 18px;
    }
    .message-container {
        font-size: 16px;
    }
    .login-main {
        width: 28rem;
    }
}

input:disabled {
    cursor: not-allowed;
}

body {
    padding-top: 2.5rem; /* 头部高度 */
    padding-bottom: 3rem; /* 底部高度 */
    background: url("../Images/logibg.jpg") center/cover no-repeat fixed;
    /* background: url("./demoBg.png") center/cover no-repeat fixed; */
    min-height: 100vh;
    box-sizing: border-box;
}

.login-main {
    background-color: #fff;
    border-radius: 0.3125rem;
    box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.1);
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 1.5% 0 1.5% 0;
    display: block;
    flex: 1;
    flex-basis: auto;
    overflow: auto;
    box-sizing: border-box;
    unicode-bidi: isolate;
    font-family: "sans-serif";
    display: flex;
}

.sso {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.interval-line {
    display: block;
    width: 0.5px;
    background-color: #ccc;
}

.outer {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    font-weight: 400;
    font-size: 1rem;
    color: #005aff;
}

.content {
    box-sizing: border-box;
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center; 
    align-items: center; 
    padding: 1vw 1.5vw;
    flex-wrap: wrap;
}

.btn {
    margin: 0;
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    outline: 0;
    transition: 0.1s;
    user-select: none;
    vertical-align: middle;
    -webkit-appearance: none;
    border: 0.5px solid #dcdfe6;
    font-size: 0.375rem;
    border-radius: 4px;
    width: 5rem;
    background: #005aff;
    color: #fff;
    height: 1.375rem;
}

.login-container {
    flex: 1;
}

.input-group {
    position: relative;
    margin-bottom: 0.625rem;
    text-align: left;
}

.input-icon {
    position: absolute;
    left: 0.3125rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 0.5rem;
}

.fas {
    color: #005aff;
}

input {
    width: 100%;
    padding: 0.375rem 0.375rem 0.375rem 1.25rem;
    border: 0.03125rem solid #ddd;
    border-radius: 0.15rem;
    font-size: 0.5rem;
    box-sizing: border-box;
    height: 1.5rem;
}

    input:focus {
        outline: none;
        border-color: #005aff;
    }

.code-group {
    display: flex;
    align-items: center;
}

.code-input {
    flex: 1;
}

.get-code, #imgCode {
    padding: 0 0.465rem;
    background: #e0e0e0;
    border: none;
    border-radius: 0.15625rem;
    color: #999;
    cursor: not-allowed;
    font-size: 0.5rem;
    height: 1.5rem;
    line-height: 1.5rem;
    margin-left: 0.3125rem;
    width: auto;
}

    .get-code.active {
        background: #005aff;
        color: white;
        cursor: pointer;
    }

#imgcode {
    height: 1.5rem;
    line-height: 1.5rem;
    margin-left: 0.3125rem;
    width: auto;
    border-radius: 0.15625rem;
    cursor: pointer;
}

.login-btn {
    width: 80%;
    padding: 0.375rem;
    background: #e0e0e2;
    border: none;
    border-radius: 0.15625rem;
    color: #999;
    font-size: 0.5rem;
    margin: 0.6125rem auto 0;
    cursor: not-allowed;
    display: block;
    height: 1.5rem;
}

    .login-btn.active {
        background: #005aff;
        color: white;
        cursor: pointer;
    }

.login-mode-btn {
    width: 100%;
    padding: 0.375rem;
    background: transparent;
    border: 0.03125rem solid #ddd;
    color: #005aff;
    font-size: 0.5rem;
    margin-top: 0.6125rem;
    cursor: pointer;
    height: 1.5rem;
}

.agreement {
    margin-top: 0.46875rem;
    font-size: 0.4375rem;
    color: #666;
    text-align: center;
}

    .agreement input {
        width: auto;
        margin-right: 0.15625rem;
        accent-color: #055aff;
    }

    .agreement label {
        cursor: pointer;
        display: flex;
        align-items: center;
    }

.agreement-link {
    color: #005aff;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 0.625rem;
    border-radius: 0.3125rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.1);
}

.close-btn {
    position: absolute;
    top: 0.3125rem;
    right: 0.3125rem;
    font-size: 0.625rem;
    cursor: pointer;
    color: #005aff;
}

.modal-title {
    font-size: 0.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
    color: #005aff;
}

.modal-text {
    font-size: 0.4375rem;
    line-height: 1.5;
}

/* 固定头部样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2.5rem;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-divider {
    width: 0.03125rem;
    height: 1.25rem;
    background: #ddd;
}

.logo {
    height: 1.25rem;
    object-fit: contain;
}

/* 固定底部样式 */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1.5;
    font-size: 0.5rem;
}

.footer-link {
    color: #4dabf7;
    text-decoration: none;
    font-weight: bold;
}

    .footer-link:hover {
        text-decoration: underline;
    }

.copyright {
    font-size: 0.4375rem;
    color: #aaa;
}
/*#user, 
#phone, 
#userIcon, 
#phoneIcon, 
#password, 
#authInput, 
#getCodeBtn, 
#imgCodeInputGroup,*/
.error-message {
    display: none;
}

.error-message {
    color: #e74c3c;
    font-size: 0.425rem;
    margin-top: 0.15rem;
    height: 0.5rem;
}
