/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
/* 禁止微信调整字体大小 */
html, body, * {
    -webkit-text-size-adjust: 100% !important;
    -ms-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important; /* 标准属性，兼容性稍差但需要加上 */
    font-size: 14px; /* 设置一个基础字号，可以根据设计稿调整，但这可能仍会被微信读屏等覆盖 */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: #f0f5ff; /* Fallback color */
    color: #333;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Background Image Handling */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* In case image is missing, use a gradient that matches the design */
    background: linear-gradient(135deg, #e0ebff 0%, #f5f9ff 100%);
}

/* Header & Logo */
.site-header {
    padding: 20px 40px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 296px;
    height: 45px;
    border-radius: 2px;
    object-fit: contain;
}

@media only screen and (max-width: 767px) {
    .logo-icon {
        width: 200px;
        height: 30px;
        /*background-color: #1890ff;*/
        border-radius: 2px;
        object-fit: contain;
    }
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.5px;
}

/* Main Container */
.main-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 80px 20px 40px; /* Top padding for header space */
    min-height: 80vh;
}

/* Auth Card */
.auth-card {
    display: flex;
    background: #fff;
    width: 1200px;
    max-width: 100%;
    height: 750px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Left Side - Illustration */
.auth-card-left {
    /*flex: 1;*/
    background-color: #f9fbff;
    display: flex;
    justify-content: center;
    align-items: center;
    /*padding: 40px;*/
    position: relative;
}

.illustration {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    /* Placeholder style if image missing */
    min-width: 200px;
    min-height: 750px;
}

/* Right Side - Form */
.auth-card-right {
    flex: 0 0 524px; /* Fixed width for form side */
    padding: 40px 58px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-title {
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    color: #6D6D6D;
    margin-bottom: 10px;
}

.title-underline {
    width: 100%;
    height: 2px;
    background-color: #CDCDCD;
/*    margin-bottom: 30px; */
}

.message-warning {
    /*color: #ff4d4f;*/
    /*font-size: 14px;*/
    /*line-height: 20px;*/
    /*margin: -18px 0 18px;*/
    border-radius: 4px;
    padding-left: 28px;
    border: 1px solid;
    color: #999;
    font-size: 14px;
    line-height: 20px;
    margin-top: 3px;
    border-color: #FF8080;
    background: #FFF2F2 url(../images/icon404a5.gif) no-repeat left;
}

.message-warning .warning {
    color: inherit;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px!important;
}

.tipTitle {
    font-family: Noto Sans S Chinese;
    font-weight: 500;
    font-size: 20px;
    color: #6D6D6D;
    text-align: center;
    margin-bottom: 41px;
}


.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 0 12px;
    height: 56px;
    transition: all 0.3s;
}

.input-wrapper:hover,
.input-wrapper:focus-within {
    border-color: #40a9ff;
}

.input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 20px;
    margin-right: 10px;
    opacity: 0.5;
    flex: 0 0 15px;
}

.input-icon img {
    width: 100%;
    height: 100%;
}

.form-input {
    flex: 1;
    min-width: 0px;
    border: none;
    outline: none;
    /*height: 100%;*/
    font-size: 14px;
    color: #333;
    background: transparent;
}

.form-input::placeholder {
    color: #bfbfbf;
}

.input-suffix {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    cursor: pointer;
    opacity: 0.5;
}

.input-suffix img {
    width: 100%;
    /*height: 100%;*/
}

.btn-code {
    background: none;
    border: none;
    color: #faad14; /* Orange/Gold color */
    font-size: 18px;
    cursor: pointer;
    white-space: nowrap;
    margin-left: 10px;
    outline: none;

}

.btn-code:hover {
    opacity: 0.8;
}

.form-helper {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
    line-height: 1.4;
    position: absolute;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    height: 58px;
    background-color: #1890ff; /* Ant Design Blue */
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 15px;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #40a9ff;
}

/* Footer Links */
.form-footer {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #666;
    margin-bottom: 30px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-wrapper input {
    /*margin-right: 6px !important;*/
    margin: 0 6px 0 0px !important;
}

.checkbox-label a {
    color: #1890ff;
    text-decoration: none;
}

.auth-bottom-link {
    text-align: right;
    font-size: 14px;
}

.auth-bottom-link span {
    color: #666;
}

.auth-bottom-link a {
    color: #1890ff;
    text-decoration: none;
    margin-left: 5px;
}

/* Responsive Design */
@media (max-width: 900px) {
    .auth-card {
        width: 100%;
        height: auto;
        min-height: auto;
    }

    .auth-card-left {
        display: none; /* Hide illustration on tablets/smaller screens or stack it? Usually hide or top */
    }

    .auth-card-right {
        flex: 1;
        padding: 40px 30px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 20px 0px 10px 20px ;
        position: relative; /* Not absolute on mobile to avoid overlap */
    }

    .main-container {
        padding: 20px;
        align-items: flex-start;
    }

    .auth-card-right {
        padding: 30px 20px;
    }

    .logo-text {
        font-size: 16px;
    }
}

/* Back Button */
.btn-back {
    width: 100%;
    height: 58px;
    background-color: white; /* Ant Design Blue */
    color: #2587FF;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 15px;
    margin-top: 10px;
    border: 1px solid #2587FF;
}

.btn-back:hover {
    background-color: #2587ff50;
}
.validation-focus {
    background-repeat: no-repeat;
    background-position: left center;
    background-image:
            url(${staticPath}/images/require.png);
}

.validation-ready {
    display: none;
    background-repeat: no-repeat;
    background-position: left center;
    background-image:
            url(${staticPath}/images/require.png);
}

.validation-valid {
    background-repeat: no-repeat;
    background-position: left center;
    background-image:
            url(${staticPath}/images/right.png);
}

.validation-error {
    color:red;
    background-repeat: no-repeat;
    background-position: left center;
    background-image:
            url(${staticPath}/images/error.png);
}

/* 修复当屏幕高度较小时内容区域与页头重叠的问题 */
.main-container {
    align-items: flex-start;
    min-height: 800px;;
}
.auth-card {
    margin: auto;
}
