* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-image: url('../img/bg.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.auth-container {
    width: 100%;
    max-width: 360px;
    padding: 15px;
    position: relative;
    z-index: 1;
}

.auth-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.auth-logo-container {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 2px solid #e4e6eb;
}

.auth-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.auth-box h1 {
    text-align: center;
    color: #050505;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 500;
}

.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #e4e6eb;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: #65676b;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #050505;
}

.tab-btn.active {
    color: #050505;
    border-bottom-color: #050505;
    font-weight: 500;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #e4e6eb;
    border-radius: 6px;
    outline: none;
    font-size: 13px;
    background: white;
    color: #050505;
    box-sizing: border-box;
}

.auth-form input:focus {
    border-color: #050505;
    box-shadow: 0 0 0 2px rgba(5, 5, 5, 0.1);
}

.auth-form button {
    width: 100%;
    padding: 10px;
    background: #050505;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s;
}

.auth-form button:hover {
    background: #333333;
}

.auth-form button:active {
    background: #000000;
}

.error-message {
    margin-top: 10px;
    padding: 10px;
    background: #fee;
    color: #c33;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.error-message.show {
    display: block;
}

.agreement-checkbox,
.remember-username-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.4;
}

.agreement-checkbox input[type="checkbox"],
.remember-username-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-right: 8px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.agreement-checkbox label,
.remember-username-checkbox label {
    color: #65676b;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.agreement-link {
    color: #050505;
    text-decoration: none;
    font-weight: 500;
}

.agreement-link:hover {
    color: #333333;
    text-decoration: underline;
}

.security-password-group {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.security-password-group input {
    flex: 1;
    margin-bottom: 0;
}

.security-password-hint {
    margin-bottom: 12px;
    padding: 6px 10px;
    background: #f5f5f5;
    border: 1px solid #e4e6eb;
    border-radius: 6px;
    font-size: 11px;
    color: #65676b;
}

.security-password-hint small {
    display: block;
    line-height: 1.5;
}

.word-list-hint {
    margin-top: 8px;
    font-size: 11px;
    color: #65676b;
}

.word-list-hint strong {
    color: #050505;
}

/* 下载链接区域样式 */
.auth-download-section {
    margin-top: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.auth-download-section > div {
    padding: 12px !important;
}

.auth-download-section > div > div:first-child {
    font-size: 12px !important;
    margin-bottom: 10px !important;
}

.auth-download-section .download-link-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    min-width: 60px;
    background: white;
    border: 1px solid #e4e6eb;
    color: #050505;
}

.auth-download-section .download-link-btn:hover {
    background: #f5f5f5;
    border-color: #bcc0c4;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-download-section .download-link-btn img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.auth-download-section .download-link-btn span {
    font-size: 12px;
    font-weight: 500;
    color: #050505;
}

@media (max-width: 480px) {
    .security-password-group {
        flex-direction: column;
        gap: 10px;
    }
}