.shadowstrike-text {
    display: flex;
    font-size: 7vw; /* 从9vw缩小 */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.2vw; /* 从1.5vw缩小 */
    user-select: none;
    white-space: nowrap;
    animation: pulse 8s infinite alternate;
}

.shadow-part {
    color: #bca37f; /* 修改：由深咖改为浅奶茶色 */
    text-shadow:
        0 0 4px rgba(188, 163, 127, 0.2),
        0 0 8px rgba(188, 163, 127, 0.1);
    filter: blur(0.4px); /* 从0.5px缩小 */
}

.strike-part {
    color: #e5a9a9; /* 修改：由复古红改为柔和的莫兰迪粉 */
    text-shadow:
        0 0 4px rgba(229, 169, 169, 0.2),
        0 0 8px rgba(229, 169, 169, 0.1);
    filter: blur(0.4px); /* 从0.5px缩小 */
}

/* 覆盖上面的重复定义，保持浅色调 */
.shadow-part {
    color: #b0a69d; /* 修改：浅咖色 */
    text-shadow:
        0 0 8px rgba(176, 166, 157, 0.2),
        0 0 16px rgba(176, 166, 157, 0.1);
    filter: blur(0.6px); /* 从0.7px缩小 */
}

.strike-part {
    color: #d7c0ae; /* 修改：浅米棕色 */
    text-shadow:
        0 0 8px rgba(215, 192, 174, 0.3),
        0 0 16px rgba(215, 192, 174, 0.2);
    filter: blur(0.6px); /* 从0.7px缩小 */
}

@keyframes shadowGlow {
    0%, 100% {
        text-shadow: 0 0 4px rgba(188, 163, 127, 0.2);
    }
    50% {
        text-shadow: 0 0 12px rgba(188, 163, 127, 0.3);
    }
}

@keyframes strikeGlow {
    0%, 100% {
        text-shadow: 0 0 4px rgba(229, 169, 169, 0.2);
    }
    50% {
        text-shadow: 0 0 12px rgba(229, 169, 169, 0.4);
    }
}

.shadow-part {
    animation: shadowGlow 6s ease-in-out infinite;
}

.strike-part {
    animation: strikeGlow 6s ease-in-out infinite;
    animation-delay: 0.5s;
}

.title-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 25%; /* 从30%缩小 */
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: -2;
}

.login-container {
    z-index: 10;
    position: relative;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    /* 背景保持奶油白/米色渐变 */
    background: linear-gradient(135deg, #faf9f6 0%, #f5f2ed 50%, #eeebe3 100%);
    color: #8c8279; /* 修改：深灰改为中度暖咖色 */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px; /* 从20px缩小 */
    position: relative;
    overflow: hidden;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 15s infinite linear;
}

.shape:nth-child(1) {
    width: 240px;
    height: 240px;
    background: linear-gradient(45deg, #ffffff, #fdfbf7);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 160px;
    height: 160px;
    background: linear-gradient(45deg, #fffcf5, #ffffff);
    top: 60%;
    left: 70%;
    animation-delay: -5s;
}

.shape:nth-child(3) {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #fdfdf5, #f5f2e9);
    top: 30%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(16px, 16px) rotate(90deg);
    }
    50% {
        transform: translate(0, 32px) rotate(180deg);
    }
    75% {
        transform: translate(-16px, 16px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

.login-container {
    background: rgba(255, 255, 255, 0.9); /* 提高亮度 */
    backdrop-filter: blur(8px);
    min-width: 480px;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(188, 163, 127, 0.1); /* 奶茶色投影 */
    border: 1px solid rgba(255, 255, 255, 1);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(188, 163, 127, 0.15);
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-header h1 {
    font-size: 2.2rem;
    font-weight: 600;
    background: linear-gradient(45deg, #bca37f, #d7c0ae); /* 修改：深色改为奶茶渐变 */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.login-header p {
    color: #b0a69d; /* 修改：深灰改为浅咖 */
    font-size: 0.95rem;
}

.input-group {
    margin-bottom: 24px;
}

.input-field {
    position: relative;
    margin-bottom: 24px;
}

.input-field i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #d7c0ae; /* 修改：浅金色图标 */
    font-size: 18px;
    z-index: 1;
}

.icon-user::before {
    content: "👤";
}

.icon-lock::before {
    content: "🔒";
}

.input-field input {
    width: 100%;
    padding: 14px 12px 14px 40px;
    background: #ffffff;
    border: 1px solid #eeebe3; /* 修改：浅米边框 */
    border-radius: 10px;
    color: #8c8279; /* 修改：输入文字改为中咖色 */
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.input-field input:focus {
    border-color: #d7c0ae;
    box-shadow: 0 0 0 2px rgba(215, 192, 174, 0.2);
    background: #fff;
}

.input-field input::placeholder {
    color: #e0ddd8;
}

.input-label {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0a69d;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-field input:focus + .input-label,
.input-field input:not(:placeholder-shown) + .input-label {
    top: -10px;
    left: 12px;
    font-size: 0.85rem;
    color: #bca37f;
    background: #fff;
    padding: 0 8px;
}

.option-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    color: #b0a69d;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 1px solid #eeebe3;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input:checked ~ .checkmark {
    background: #d7c0ae;
    border-color: #d7c0ae;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.login-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, #d7c0ae, #e5d3c5); /* 修改：改为更浅的奶油色 */
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.login-button:hover {
    background: linear-gradient(45deg, #bca37f, #d7c0ae);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(188, 163, 127, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

.button-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.login-button.loading .button-text {
    opacity: 0;
}

.login-button.loading .button-loader {
    display: block;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    color: #b0a69d;
    font-size: 0.9rem;
}
.register-link a {
    color: #bca37f;
    text-decoration: none;
    margin-left: 6px;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}
.register-link a:hover {
    color: #d7c0ae;
    text-decoration: underline;
}
.error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(229, 169, 169, 0.1); /* 修改：浅粉色背景 */
    border: 1px solid rgba(229, 169, 169, 0.2);
    border-radius: 6px;
    padding: 12px;
    margin-top: 20px;
    color: #e5a9a9; /* 修改：错误文字改为莫兰迪粉 */
    font-size: 0.9rem;
    animation: shake 0.5s ease-in-out;
}
.error-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #e5a9a9;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-weight: bold;
    margin-right: 10px;
    font-size: 0.9rem;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

@media (max-width: 1024px) {
    .login-container {
        width: 65%;
    }
}

@media (max-width: 768px) {
    .login-container {
        width: 80%;
        padding: 24px 20px;
    }

    .login-header h1 {
        font-size: 1.9rem;
    }
}

@media (max-width: 576px) {
    .login-container {
        width: 90%;
        padding: 20px 16px;
        min-width: unset;
    }

    .login-header h1 {
        font-size: 1.7rem;
    }

    .checkbox-container {
        margin-bottom: 10px;
    }

    .input-field input {
        padding: 12px 12px 12px 36px;
        font-size: 0.95rem;
    }
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

.register-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    min-width: 480px;
    padding: 20px;
    border-radius: 13px;
    box-shadow: 0 6px 16px rgba(188, 163, 127, 0.08);
    border: 1px solid rgba(255, 255, 255, 1);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.register-container:hover {
    transform: translate(-50%, -51%);
    box-shadow: 0 10px 20px rgba(188, 163, 127, 0.12);
}

.register-header {
    text-align: center;
    margin-bottom: 16px;
}

.register-header h1 {
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(45deg, #bca37f, #d7c0ae); /* 修改：改为浅奶茶色 */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.input-row {
    position: relative;
    margin-bottom: 13px;
}

.input-row i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #d7c0ae;
    font-size: 16px;
    z-index: 1;
}

.icon-user::before {
    content: "👤";
}

.icon-lock::before {
    content: "🔒";
}

.icon-email::before {
    content: "📧";
}

.icon-code::before {
    content: "🔢";
}

.input-row input {
    width: 100%;
    padding: 14px 12px 14px 40px;
    background: #fff;
    border: 1px solid #eeebe3;
    border-radius: 10px;
    color: #8c8279;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.input-row input:focus {
    border-color: #d7c0ae;
    box-shadow: 0 0 0 2px rgba(215, 192, 174, 0.1);
    background: #fff;
}

.input-row input::placeholder {
    color: #e0ddd8;
}

.verification-group {
    display: flex;
    gap: 6px;
    position: relative;
}

.verification-group input {
    flex: 1;
    padding-left: 38px;
}

.verification-group i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #d7c0ae;
    font-size: 16px;
    z-index: 1;
}

.verification-group button {
    white-space: nowrap;
    height: 48px;
    padding: 0 10px;
    background: #fdfcf9;
    border: 1px solid #eeebe3;
    border-radius: 6px;
    color: #b0a69d;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.verification-group button:hover:not(:disabled) {
    background: #ffffff;
    border-color: #d7c0ae;
    color: #bca37f;
}

.verification-group button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.register-button {
    width: 100%;
    height: 48px;
    padding: 12px;
    background: linear-gradient(45deg, #d7c0ae, #e5d3c5); /* 修改：奶油渐变 */
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 6px;
    margin-bottom: 13px;
}

.register-button:hover:not(:disabled) {
    background: linear-gradient(45deg, #bca37f, #d7c0ae);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(188, 163, 127, 0.2);
}

.register-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.back-link {
    text-align: center;
    margin-top: 10px;
}

.back-link a {
    color: #bca37f;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.back-link a:hover {
    color: #d7c0ae;
    text-decoration: underline;
}

.success-message {
    color: #a8b88e !important; /* 修改：更柔和的灰绿色 */
}

@media (max-width: 1024px) {
    .register-container {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .register-container {
        width: 70%;
        padding: 16px 12px;
    }

    .verification-group {
        flex-direction: column;
    }

    .verification-group button {
        width: 100%;
        margin-top: 6px;
    }
}

@media (max-width: 576px) {
    .register-container {
        width: 90%;
        padding: 13px 10px;
        min-width: unset;
    }
}

.snow-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.95); /* 雪花改为接近纯白 */
    border-radius: 50%;
    opacity: 0;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-10px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) translateX(16px) rotate(360deg);
        opacity: 0;
    }
}