.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: rgba(255, 255, 255,1);
    text-shadow:
        0 0 4px rgba(255, 255, 255, 0.3),
        0 0 8px rgba(255, 255, 255, 0.2),
        0 0 12px rgba(255, 255, 255, 0.1);
    filter: blur(0.4px); /* 从0.5px缩小 */
}

.strike-part {
    color: rgba(255, 0, 0, 1);
    text-shadow:
        0 0 4px rgba(255, 0, 0, 0.3),
        0 0 8px rgba(255, 0, 0, 0.2),
        0 0 12px rgba(255, 0, 0, 0.1),
        0 0 16px rgba(255, 0, 0, 0.05);
    filter: blur(0.4px); /* 从0.5px缩小 */
}

.shadow-part {
    color: rgba(255, 255, 255, 1);
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.5),
        0 0 16px rgba(255, 255, 255, 0.4),
        0 0 24px rgba(255, 255, 255, 0.3);
    filter: blur(0.6px); /* 从0.7px缩小 */
}

.strike-part {
    color: rgba(255, 0, 0,1);
    text-shadow:
        0 0 8px rgba(255, 0, 0, 0.5),
        0 0 16px rgba(255, 0, 0, 0.4),
        0 0 24px rgba(255, 0, 0, 0.3),
        0 0 32px rgba(255, 0, 0, 0.2);
    filter: blur(0.6px); /* 从0.7px缩小 */
}

@keyframes shadowGlow {
    0%, 100% {
        text-shadow: 0 0 4px rgba(255, 255, 255, 0.3),
                     0 0 8px rgba(255, 255, 255, 0.2);
    }
    50% {
        text-shadow: 0 0 12px rgba(255, 255, 255, 0.5),
                     0 0 20px rgba(255, 255, 255, 0.4);
    }
}

@keyframes strikeGlow {
    0%, 100% {
        text-shadow: 0 0 4px rgba(255, 255, 255, 0.3),
                     0 0 8px rgba(255, 255, 255, 0.2);
    }
    50% {
        text-shadow: 0 0 12px rgba(255, 255, 255, 0.5),
                     0 0 20px rgba(255, 255, 255, 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, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    color: #e0e0e0;
    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.1;
    animation: float 15s infinite linear;
}

.shape:nth-child(1) {
    width: 240px; /* 从300px缩小 */
    height: 240px; /* 从300px缩小 */
    background: linear-gradient(45deg, #3a3a3a, #000);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 160px; /* 从200px缩小 */
    height: 160px; /* 从200px缩小 */
    background: linear-gradient(45deg, #2a2a2a, #000);
    top: 60%;
    left: 70%;
    animation-delay: -5s;
}

.shape:nth-child(3) {
    width: 200px; /* 从250px缩小 */
    height: 200px; /* 从250px缩小 */
    background: linear-gradient(45deg, #333, #111);
    top: 30%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(16px, 16px) rotate(90deg); /* 从20px缩小 */
    }
    50% {
        transform: translate(0, 32px) rotate(180deg); /* 从40px缩小 */
    }
    75% {
        transform: translate(-16px, 16px) rotate(270deg); /* 从20px缩小 */
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

.login-container {
    background: rgba(25, 25, 25, 0.8);
    backdrop-filter: blur(8px); /* 从10px缩小 */
    min-width: 480px; /* 从600px缩小 */
    padding: 32px; /* 从40px缩小 */
    border-radius: 16px; /* 从20px缩小 */
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5); /* 从15px/35px缩小 */
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-container:hover {
    transform: translateY(-4px); /* 从5px缩小 */
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6); /* 从20px/40px缩小 */
}

.login-header {
    text-align: center;
    margin-bottom: 28px; /* 从35px缩小 */
}

.login-header h1 {
    font-size: 2.2rem; /* 从2.8rem缩小 */
    font-weight: 600;
    background: linear-gradient(45deg, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px; /* 从15px缩小 */
    letter-spacing: 1px;
}

.login-header p {
    color: #888;
    font-size: 0.95rem; /* 从1.1rem缩小 */
}

.input-group {
    margin-bottom: 24px; /* 从30px缩小 */
}

.input-field {
    position: relative;
    margin-bottom: 24px; /* 从30px缩小 */
}

.input-field i {
    position: absolute;
    left: 12px; /* 从15px缩小 */
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 18px; /* 从20px缩小 */
    z-index: 1;
}

.icon-user::before {
    content: "👤";
}

.icon-lock::before {
    content: "🔒";
}

.input-field input {
    width: 100%;
    padding: 14px 12px 14px 40px; /* 从18px/15px/50px缩小 */
    background: rgba(40, 40, 40, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px; /* 从12px缩小 */
    color: #e0e0e0;
    font-size: 1rem; /* 从1.1rem缩小 */
    transition: all 0.3s ease;
    outline: none;
}

.input-field input:focus {
    border-color: rgba(100, 100, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(100, 100, 255, 0.1); /* 从3px缩小 */
    background: rgba(50, 50, 50, 0.8);
}

.input-field input::placeholder {
    color: #666;
    font-size: 0.9rem; /* 从1rem缩小 */
}

.input-label {
    position: absolute;
    left: 40px; /* 从50px缩小 */
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 1rem; /* 从1.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; /* 从12px缩小 */
    left: 12px; /* 从15px缩小 */
    font-size: 0.85rem; /* 从0.9rem缩小 */
    color: #6b8cff;
    background: rgba(25, 25, 25, 0.9);
    padding: 0 8px; /* 从10px缩小 */
}

.option-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px; /* 从35px缩小 */
}

.checkbox-container {
    display: flex;
    align-items: center;
    color: #aaa;
    font-size: 0.9rem; /* 从1rem缩小 */
    cursor: pointer;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    display: inline-block;
    width: 18px; /* 从20px缩小 */
    height: 18px; /* 从20px缩小 */
    background: rgba(40, 40, 40, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-right: 8px; /* 从10px缩小 */
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input:checked ~ .checkmark {
    background: rgba(100, 100, 255, 0.3);
    border-color: rgba(100, 100, 255, 0.5);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px; /* 从7px缩小 */
    top: 2px; /* 从3px缩小 */
    width: 4px; /* 从5px缩小 */
    height: 8px; /* 从10px缩小 */
    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; /* 从18px缩小 */
    background: linear-gradient(45deg, #333, #555);
    border: none;
    border-radius: 10px; /* 从12px缩小 */
    color: #fff;
    font-size: 1.1rem; /* 从1.2rem缩小 */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px; /* 从25px缩小 */
}

.login-button:hover {
    background: linear-gradient(45deg, #444, #666);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* 从5px/15px缩小 */
}

.login-button:active {
    transform: translateY(0);
}

.button-loader {
    display: none;
    width: 20px; /* 从24px缩小 */
    height: 20px; /* 从24px缩小 */
    border: 2px solid rgba(255, 255, 255, 0.3); /* 从3px缩小 */
    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; /* 从25px缩小 */
    color: #888;
    font-size: 0.9rem; /* 从1rem缩小 */
}
.register-link a {
    color: #6b8cff;
    text-decoration: none;
    margin-left: 6px; /* 从8px缩小 */
    transition: color 0.3s ease;
    font-size: 0.9rem; /* 从1rem缩小 */
}
.register-link a:hover {
    color: #8ba6ff;
    text-decoration: underline;
}
.error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 6px; /* 从8px缩小 */
    padding: 12px; /* 从15px缩小 */
    margin-top: 20px; /* 从25px缩小 */
    color: #ff5555;
    font-size: 0.9rem; /* 从1rem缩小 */
    animation: shake 0.5s ease-in-out;
}
.error-icon {
    display: inline-block;
    width: 20px; /* 从24px缩小 */
    height: 20px; /* 从24px缩小 */
    background: #ff5555;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 20px; /* 从24px缩小 */
    font-weight: bold;
    margin-right: 10px; /* 从12px缩小 */
    font-size: 0.9rem; /* 从1rem缩小 */
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); } /* 从5px缩小 */
    40%, 80% { transform: translateX(4px); } /* 从5px缩小 */
}

@media (max-width: 1024px) {
    .login-container {
        width: 65%;
    }
}

@media (max-width: 768px) {
    .login-container {
        width: 80%;
        padding: 24px 20px; /* 从30px/25px缩小 */
    }

    .login-header h1 {
        font-size: 1.9rem; /* 从2.3rem缩小 */
    }
}

@media (max-width: 576px) {
    .login-container {
        width: 90%;
        padding: 20px 16px; /* 从25px/20px缩小 */
        min-width: unset;
    }

    .login-header h1 {
        font-size: 1.7rem; /* 从2rem缩小 */
    }

    .checkbox-container {
        margin-bottom: 10px; /* 从12px缩小 */
    }

    .input-field input {
        padding: 12px 12px 12px 36px; /* 从15px/15px/45px缩小 */
        font-size: 0.95rem; /* 从1rem缩小 */
    }
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

.register-container {
    background: rgba(25, 25, 25, 0.85);
    backdrop-filter: blur(6px); /* 从8px缩小 */
    min-width: 480px; /* 从600px缩小 */
    padding: 20px; /* 从25px缩小 */
    border-radius: 13px; /* 从16px缩小 */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); /* 从8px/20px缩小 */
    border: 1px solid rgba(255, 255, 255, 0.04);
    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(0, 0, 0, 0.5); /* 从12px/24px缩小 */
}

.register-header {
    text-align: center;
    margin-bottom: 16px; /* 从20px缩小 */
}

.register-header h1 {
    font-size: 2rem; /* 从2.5rem缩小 */
    font-weight: 600;
    background: linear-gradient(45deg, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 6px; /* 从8px缩小 */
    letter-spacing: 1px;
}

.input-row {
    position: relative;
    margin-bottom: 13px; /* 从16px缩小 */
}

.input-row i {
    position: absolute;
    left: 10px; /* 从12px缩小 */
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 16px; /* 从18px缩小 */
    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; /* 从18px/15px/50px缩小 */
    background: rgba(40, 40, 40, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px; /* 从12px缩小 */
    color: #e0e0e0;
    font-size: 1rem; /* 从1.1rem缩小 */
    transition: all 0.3s ease;
    outline: none;
}

.input-row input:focus {
    border-color: rgba(100, 100, 255, 0.4);
    box-shadow: 0 0 0 2px rgba(100, 100, 255, 0.08);
    background: rgba(50, 50, 50, 0.8);
}

.input-row input::placeholder {
    color: #666;
}

.verification-group {
    display: flex;
    gap: 6px; /* 从8px缩小 */
    position: relative;
}

.verification-group input {
    flex: 1;
    padding-left: 38px; /* 从48px缩小 */
}

.verification-group i {
    position: absolute;
    left: 10px; /* 从12px缩小 */
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 16px; /* 从18px缩小 */
    z-index: 1;
}

.verification-group button {
    white-space: nowrap;
    height: 48px; /* 从60px缩小 */
    padding: 0 10px; /* 从12px缩小 */
    background: rgba(60, 60, 60, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px; /* 从8px缩小 */
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem; /* 从0.9rem缩小 */
}

.verification-group button:hover:not(:disabled) {
    background: rgba(100, 100, 255, 0.25);
    border-color: rgba(100, 100, 255, 0.4);
}

.verification-group button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.register-button {
    width: 100%;
    height: 48px; /* 从60px缩小 */
    padding: 12px; /* 从14px缩小 */
    background: linear-gradient(45deg, #333, #555);
    border: none;
    border-radius: 6px; /* 从8px缩小 */
    color: #fff;
    font-size: 1rem; /* 从1.1rem缩小 */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 6px; /* 从8px缩小 */
    margin-bottom: 13px; /* 从16px缩小 */
}

.register-button:hover:not(:disabled) {
    background: linear-gradient(45deg, #444, #666);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); /* 从3px/8px缩小 */
}

.register-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.back-link {
    text-align: center;
    margin-top: 10px; /* 从12px缩小 */
}

.back-link a {
    color: #6b8cff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem; /* 从0.95rem缩小 */
}

.back-link a:hover {
    color: #8ba6ff;
    text-decoration: underline;
}

.success-message {
    color: #4caf50 !important;
}

@media (max-width: 1024px) {
    .register-container {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .register-container {
        width: 70%;
        padding: 16px 12px; /* 从20px/15px缩小 */
    }

    .verification-group {
        flex-direction: column;
    }

    .verification-group button {
        width: 100%;
        margin-top: 6px; /* 从8px缩小 */
    }
}

@media (max-width: 576px) {
    .register-container {
        width: 90%;
        padding: 13px 10px; /* 从16px/12px缩小 */
        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.8);
    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.6;
    }
    100% {
        transform: translateY(100vh) translateX(16px) rotate(360deg); /* 从20px缩小 */
        opacity: 0;
    }
}