/**
 * Login page — validated fields, trust copy
 */

.login-card h2 {
  text-align: left;
}

.login-field-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.login-field-wrap input {
  width: 100%;
   padding: 14px 18px;
   margin-bottom: 0;
   background: #ffffff;
   border: 1px solid #e2e8f0;
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.login-field-wrap input::placeholder {
  color: rgba(15, 23, 42, 0.4);
}

.login-field-wrap input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.6);
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.08);
}

/* Keep dark styling when browser autofill is applied */
.login-field-wrap input:-webkit-autofill,
.login-field-wrap input:-webkit-autofill:hover,
.login-field-wrap input:-webkit-autofill:focus,
.login-field-wrap input:-webkit-autofill:active {
  -webkit-text-fill-color: #0f172a !important;
  caret-color: #0f172a;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  border: 1px solid #e6edf3;
  transition: background-color 99999s ease-in-out 0s;
}

.login-field-wrap input:-webkit-autofill:focus {
  box-shadow: 0 0 0 1000px #ffffff inset, 0 0 0 3px rgba(37, 99, 235, 0.08) !important;
  border-color: rgba(37, 99, 235, 0.6);
}

.login-field-wrap--password input {
  padding-right: 52px;
}

.login-field-wrap .password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}

.login-field-wrap .password-toggle:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
}

.login-field-wrap .password-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.3);
  outline-offset: 2px;
}

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

.login-card .login-form-error {
  padding: 12px;
  margin-bottom: 16px;
  background-color: rgba(248, 113, 113, 0.1);
  color: #f87171;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}

.login-trust-line {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  margin-top: 20px;
  margin-bottom: 8px;
}
