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

/* 隐藏浏览器 (Edge/IE) 自带的"显示密码"小眼睛按钮 */
input::-ms-reveal,
input::-ms-clear {
    display: none;
}

/* 隐藏 Chrome / Edge Chromium 内置密码可见按钮 */
input::-webkit-textfield-decoration-container,
input::-webkit-credentials-auto-fill-button {
    display: none !important;
}

/* 定义标准属性 appearance 以实现兼容性 */
input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* 隐藏浏览器 (Edge/IE) 自带的"显示密码"小眼睛按钮 */
input::-ms-reveal,
input::-ms-clear {
    display: none;
}

/* 隐藏 Chrome / Edge Chromium 内置密码可见按钮 */
input::-webkit-textfield-decoration-container,
input::-webkit-credentials-auto-fill-button {
    display: none !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a2332;
    color: #2c3e50;
    position: relative;
    overflow: hidden;
}

.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    position: relative;
    z-index: 2;
    perspective: 1000px;
}

.login-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 8px 40px rgba(31, 45, 61, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    will-change: transform;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #409eff 0%, #6a5acd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(64, 158, 255, 0.30);
}

.logo svg {
    width: 34px;
    height: 34px;
    color: #ffffff;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.login-header p {
    font-size: 14px;
    color: #000000;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #606266;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    width: 20px;
    height: 20px;
    color: #c0c4cc;
    pointer-events: none;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.input-wrap input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 42px;
    font-size: 14px;
    color: #2c3e50;
    background: rgba(247, 248, 250, 0.9);
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
}

.input-wrap input::placeholder {
    color: #c0c4cc;
}

.input-wrap input:hover {
    border-color: #c0c4cc;
}

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

.input-wrap input:focus ~ .input-icon {
    color: #409eff;
}

.input-wrap input.error {
    border-color: #f56c6c;
    background: #fef0f0;
}

.input-wrap input.error ~ .input-icon {
    color: #f56c6c;
}

.toggle-pwd {
    position: absolute;
    right: 12px;
    width: 20px;
    height: 20px;
    color: #c0c4cc;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.2s ease;
}

.toggle-pwd:hover {
    color: #909399;
}

.toggle-pwd svg {
    width: 20px;
    height: 20px;
}

.error-msg {
    display: none;
    font-size: 12px;
    color: #f56c6c;
    margin-top: 6px;
    line-height: 1.4;
}

.error-msg.show {
    display: block;
}

.login-btn {
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, #409eff 0%, #5b8def 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    letter-spacing: 1px;
}

.login-btn:hover {
    box-shadow: 0 6px 16px rgba(64, 158, 255, 0.35);
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: #000000;
}

.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 12px 24px;
    background: #2c3e50;
    color: #ffffff;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: #67c23a;
}

.toast.error {
    background: #f56c6c;
}
