* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    min-height: 100vh;
    background: #ffffff;
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.main-card {
    width: 440px;
    max-width: 100%;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    padding: 36px 40px 28px;
    transition: box-shadow 0.25s ease;
}

.main-card:hover {
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.10), 0 6px 16px rgba(0, 0, 0, 0.05);
}

.card-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #1f2f3d;
    letter-spacing: 2px;
    margin-bottom: 24px;
    user-select: none;
}

.form-panel {
    display: block;
}

.form-panel.hidden {
    display: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 16px;
}

.input-item {
    position: relative;
    width: 100%;
}

.input-item input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #dcdfe6;
    border-radius: 10px;
    font-size: 15px;
    color: #303133;
    background: #f7f9fc;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.input-item input:focus {
    border-color: #409eff;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.12);
}

.input-item input::placeholder {
    color: #a8abb2;
    font-weight: 400;
}

.input-item .toggle-pwd {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #a8abb2;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
}

.code-send-btn {
    background-color: #ffffff !important;
    color: #409eff !important;
    border: 1px solid #409eff !important;
    border-radius: 10px;
    padding: 0 16px;
    height: 48px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    min-width: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fff;
    outline: none;
}

.code-send-btn:hover:not(:disabled) {
    background-color: #ecf5ff !important;
}

.code-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.primary-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: #409eff;
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.25s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.primary-btn:hover:not(:disabled) {
    background: #66b1ff;
}

.primary-btn:active:not(:disabled) {
    transform: scale(0.97);
}

.primary-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.switch-area {
    text-align: center;
    margin-top: 16px;
    font-size: 15px;
    color: #606266;
}

.switch-link {
    color: #409eff;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    background: transparent;
    border: none;
    padding: 0 4px;
    font-size: 15px;
}

.switch-link:hover {
    color: #66b1ff;
}

.remember-area {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: -4px;
    font-size: 14px;
    color: #606266;
}

.remember-area input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #409eff;
}

.error-msg {
    color: #f56c6c;
    font-size: 14px;
    min-height: 20px;
    margin-top: 4px;
}

.copyright {
    text-align: center;
    font-size: 13px;
    color: #b0b6c0;
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid #f0f2f5;
    letter-spacing: 0.3px;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@media screen and (max-width: 500px) {
    .main-card {
        padding: 28px 20px 20px;
        width: 100%;
    }
    .card-title {
        font-size: 26px;
        margin-bottom: 18px;
    }
    .input-item input {
        height: 44px;
        font-size: 14px;
    }
    .primary-btn {
        height: 44px;
        font-size: 16px;
    }
    .code-send-btn {
        height: 44px;
        font-size: 13px;
        min-width: 90px;
    }
}

/* 新增版本号样式 */
.version {
    text-align: center;
    font-size: 12px;
    color: #c0c4cc;
    margin-top: 4px;
    letter-spacing: 0.5px;
    user-select: none;
}