* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 导航栏样式 */
.mc-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.08);
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.mc-nav__container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 30px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mc-nav__logo {
    height: 40px;
    display: flex;
    align-items: center;
}

.mc-nav__logo img {
    height: 100%;
    width: auto;
}

.mc-logo-img {
    height: 32px !important;
}

/* 登录区域样式 */
.login-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.back-to-home {
    display: inline-block;
    margin-bottom: 20px;
    color: #4e5969;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.back-to-home:hover {
    color: #2B6DF3;
}

.login-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 420px;
    padding: 40px;
    animation: fadeInUp 0.6s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-title {
    font-size: 24px;
    color: #1d2129;
    margin-bottom: 8px;
    font-weight: 600;
}

.login-subtitle {
    font-size: 14px;
    color: #86909c;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e6eb;
    border-radius: 4px;
    font-size: 14px;
    color: #1d2129;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #2B6DF3;
    outline: none;
    box-shadow: 0 0 0 2px rgba(43, 109, 243, 0.1);
}

.form-input::placeholder {
    color: #c9cdd4;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #4e5969;
    user-select: none;
}

.remember-me span {
    font-size: 13px;
}

.forgot-password {
    color: #2B6DF3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #1b4df0;
}

.login-button {
    background: #2B6DF3;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 42px;
    position: relative;
    overflow: hidden;
}

.login-button:hover {
    background: #1b4df0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(43, 109, 243, 0.2);
}

.login-button.loading {
    color: transparent;
    pointer-events: none;
}

.login-button.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: button-loading-spinner 0.8s linear infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

.login-button:disabled {
    background: #94b8f9;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.register-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #4e5969;
}

.register-link a {
    color: #2B6DF3;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #1b4df0;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .login-box {
        padding: 30px 20px;
    }

    .mc-nav__container {
        padding: 0 15px;
    }

    .mc-nav__logo {
        height: 32px;
    }
}

@media screen and (max-width: 480px) {
    .login-container {
        padding: 80px 15px 30px;
    }

    .login-title {
        font-size: 20px;
    }

    .form-input {
        padding: 10px 14px;
    }

    .login-button {
        padding: 10px;
    }
}

/* 修改记住我复选框样式 */
.remember-me input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #e5e6eb;
    border-radius: 3px;
    margin: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    background: #fff;
}

.remember-me input[type="checkbox"]:checked {
    background: #2B6DF3;
    border-color: #2B6DF3;
}

.remember-me input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
}

.remember-me input[type="checkbox"]:hover {
    border-color: #2B6DF3;
}

/* 错误消息样式 */
.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #ef9a9a;
    display: none; /* 默认隐藏，由JS或PHP控制显示 */
}

.error-message.show {
    display: block;
}

/* 输入框错误状态 */
.form-input.error {
    border-color: #ff4d4f;
}

.form-input.error:focus {
    border-color: #ff4d4f;
    box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.1);
} 