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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
    background: #fff;
    color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
}

.login-wrap {
    width: 100%;
    max-width: 340px;
    padding: 24px;
}

/* 品牌 */
.brand {
    text-align: center;
    margin-bottom: 40px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    color: #4f46e5;
    margin-bottom: 16px;
}

.brand h1 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* 表单字段 */
.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.15s;
}

.field input::placeholder {
    color: #9ca3af;
}

.field input:focus {
    border-color: #4f46e5;
}

/* 登录按钮 */
.btn-login {
    width: 100%;
    margin-top: 8px;
    padding: 11px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s;
}

.btn-login:hover {
    opacity: 0.85;
}

.btn-login:active {
    opacity: 0.7;
}

.btn-login:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 底部提示 */
.hint {
    margin-top: 28px;
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
}

/* Toast */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    padding: 10px 16px;
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    background: #1a1a1a;
    animation: toastIn 0.2s ease;
}

.toast.error {
    background: #dc2626;
}

@keyframes toastIn {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
