/* 登录、输入框、表单行 */
/* —— Login —— */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
}

.login-card {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.login-card .btn-primary {
  width: 100%;
  margin-top: 4px;
}

.login-title {
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.03em;
}

.login-sub {
  text-align: center;
  color: var(--text-secondary);
  margin: 8px 0 28px;
  font-size: 15px;
}

.input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font);
  background: var(--bg);
  outline: none;
}

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
  background: #fff;
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field .password-input {
  width: 100%;
  padding-right: 44px;
  margin-bottom: 0;
}

.login-card .password-field {
  margin-bottom: 12px;
}

.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
}

.password-toggle:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}

.password-toggle .icon-eye-on {
  display: none;
}

.password-toggle.is-visible .icon-eye-off {
  display: none;
}

.password-toggle.is-visible .icon-eye-on {
  display: block;
}

.app-screen {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.btn-logout {
  margin-top: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--text);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s, color 0.2s;
}

.btn-logout:hover {
  background: var(--text);
  color: #fff;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.form-row .input {
  flex: 1;
  min-width: 140px;
  margin-bottom: 0;
}

.form-row .password-field {
  flex: 1;
  min-width: 140px;
}

