/* --- Global Message 样式 (来自设计文件) --- */
.global-message-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    max-width: 350px;
    pointer-events: none;
}

.global-message {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 10px;
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.global-message.show {
    transform: translateX(0);
    opacity: 1;
}

.global-message.error {
    background: #ffffff;
    color: #090e1d;
    border-left: 4px solid #ff323a; /* 添加红色左边框以区分错误 */
}

.message-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
    line-height: 1.4;
}

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

html,
body {
    height: 100%;
    font-size: 14px;
    background: #ffffff;
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

.brand-section {
    text-align: center;
    padding: 40px 20px 20px;
}

.brand-logo {
    margin-bottom: 30px;
}

.brand-logo img {
    max-width: 100%;
    height: auto;
}

.content-section {
    padding: 0 30px 40px;
}

.instruction-text {
    font-weight: 400;
    font-size: 20px;
    line-height: 30px;
    color: #000000;
    margin-bottom: 30px;
}

.buttons-section {
    display: flex;
    gap: 15px;
    margin-top: 64px;
}

.action-btn {
    flex: 1;
    height: 48px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.agree-btn {
    background: #ff323a;
    color: #ffffff;
}

.agree-btn:hover {
    background: #c00025;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(228, 0, 44, 0.3);
}

.action-btn:disabled {
    cursor: not-allowed;
    background-color: #FFD6D8 !important;
}

.inputWrap {
    position: relative;
}

.inputWrap input {
    width: 100%;
    font-size: 16px;
    background: #fafafa;
    border: 1px solid #ededed;
    border-radius: 20px;
    padding: 22px 15px;
    margin-top: 30px;
}

.inputWrap.errorInput input {
    border-color: #ff323a;
}

.inputWrap .errorMsg {
    font-weight: 500;
    font-size: 14px;
    color: #f83b3b;
    padding-left: 15px;
    padding-top: 5px;
    display: none;
}

.inputWrap.errorInput .errorMsg {
    display: block;
}

.inputWrap input:focus,
.inputWrap input:hover {
    outline: none;
    border-color: #090e1d;
}

.inputWrap input::placeholder {
    color: #9da4b0;
}

/* 加载遮罩层 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    background: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff323a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.loading-text {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 移动端适配 */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .inputWrap input {
        margin-top: 20px;
    }

    .auth-card {
        border-radius: 8px;
    }

    .brand-section {
        padding: 0px 30px 15px 15px;
    }

    .content-section {
        padding: 0 20px 30px;
    }

    .instruction-text {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .global-message-container {
        top: 10px;
        width: 90%;
    }
}
