html {
    overflow-x: auto;
    scroll-behavior: smooth;
}

body {
    background-color: #f5f5f5;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-width: 320px;
    width: 100%;
}

.main-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
}

.outer-container {
    width: 100%;
    padding: 0 15px;
}

.center-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.login-outer {
    width: 440px;
}

.login-box {
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 40px 50px;
}

.center-text {
    text-align: center;
}

.mb-lg {
    margin-bottom: 32px;
}

.mb-md {
    margin-bottom: 24px;
}

.mb-sm {
    margin-bottom: 16px;
}

.mb-none {
    margin-bottom: 0;
}

.pt-md {
    padding-top: 24px;
}

.ml-xs {
    margin-left: 8px;
}

.fs-lg {
    font-size: 24px;
}

.fs-md {
    font-size: 20px;
    line-height: 28px;
}

.fs-sm {
    font-size: 14px;
}

.fw-bold {
    font-weight: 700;
}

.fw-semi {
    font-weight: 600;
}

.text-secondary {
    color: #707070;
}

.text-gray {
    color: #424242;
}

.border-top-light {
    border-top: 1px solid #edebe9;
}

.grid-display {
    display: grid;
}

.gap-sm {
    gap: 16px;
}

.form-field-wrapper {
    position: relative;
    width: 100%;
}

.login-input {
    border: none;
    border-bottom: 1px solid #616161;
    border-radius: 0;
    padding: 0 18px 0 8px;
    height: 40px;
    font-size: 16px;
    background-color: transparent;
    width: 100%;
}

.login-input:focus {
    box-shadow: none;
    border-bottom-color: #616161;
    outline: none;
}

.floating-label {
    color: #707070;
    font-size: 14px;
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.2s ease;
    pointer-events: none;
    margin: 0;
    font-weight: 400;
}

.login-input:focus+.floating-label,
.login-input:not(:placeholder-shown)+.floating-label {
    top: 0;
    font-size: 12px;
    transform: translateY(-100%);
    color: #616161;
}

.login-input::placeholder {
    color: transparent;
}

.submit-button {
    background-color: #0f6cbd;
    border: none;
    font-weight: 600;
    color: white;
    height: 40px;
    border-radius: 4px;
    width: 100%;
    cursor: pointer;
}

.submit-button:hover {
    background-color: #115ea3;
}

.text-link,
.footer-link-item {
    color: #115ea3;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
}

.text-link:hover,
.footer-link-item:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.page-footer {
    margin-top: auto;
    padding: 32px 0;
    background: transparent;
}

.footer-content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-center {
    display: flex;
    justify-content: center;
    width: 100%;
}

.footer-inner {
    width: 440px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 16px;
}

.header-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.side-button {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    line-height: 16px;
    font-size: 12px;
    color: #424242;
    font-weight: 400;
    padding: 1px;
    border-radius: 4px;
    align-items: center;
    display: inline-flex;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
}

.button-icon {
    width: 20px;
    height: 20px;
    font-size: 20px;
    align-items: center;
    display: inline-flex;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.button-icon svg {
    width: 24px;
    height: 24px;
}

#current-user {
    max-width: 440px;
    margin: 0 auto 16px;
    padding: 8px 16px;
    background-color: #e1f0ff;
    border-color: #a3d4ff;
    color: #0f6cbd;
    font-size: 14px;
    border-radius: 8px;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.select-option-button {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    color: #424242;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    font-weight: 500;
}

.select-option-button:hover {
    border-color: #0f6cbd;
    background-color: #f8f9fa;
    color: #0f6cbd;
}

/* 新增：协议勾选行样式 */
.agreement-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: #707070;
    margin-bottom: 20px;
    user-select: none;
}

.agreement-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #0f6cbd;
    margin: 0;
}

.agreement-row label {
    cursor: pointer;
    margin: 0;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
}

.agreement-row a {
    color: #0f6cbd;
    text-decoration: none;
    font-weight: 500;
    margin: 0 2px;
}

.agreement-row a:hover {
    text-decoration: underline;
    color: #115ea3;
}

.modal-header {
    border-bottom: None;
}

.modal-footer {
    border-top: None;
}