/* Popup-style login/OTP card. Layout modeled on a reference login page
   (centered floating card over a full-height background, icon-prefixed
   inputs, accent button) but themed to match portal.css's WP-admin blue
   instead of pulling in an external CSS framework. */

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

body.auth {
  background: linear-gradient(160deg, #0073aa 0%, #164a63 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.auth-card-header {
  background: #0073aa;
  color: #fff;
  padding: 22px 28px;
  text-align: center;
}

.auth-card-header h1 {
  margin: 0;
  font-size: 1.4em;
  font-weight: 600;
}

.auth-card-header p {
  margin: 6px 0 0;
  font-size: 0.85em;
  color: #cfe8f7;
}

.auth-card-body {
  padding: 26px 28px 10px;
}

.auth-error {
  background: #fdecea;
  border-left: 4px solid #d63638;
  color: #611a15;
  padding: 10px 12px;
  border-radius: 3px;
  font-size: 0.9em;
  margin: 0 0 18px;
}

.auth-field {
  display: flex;
  align-items: stretch;
  margin-bottom: 16px;
  border: 1px solid #d5dadf;
  border-radius: 4px;
  overflow: hidden;
}

.auth-field:focus-within {
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.15);
}

.auth-field-icon {
  flex-shrink: 0;
  width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1c40f;
  color: #23282d;
}

.auth-field-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.auth-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 10px 12px;
  font-size: 1em;
  outline: none;
}

.auth-submit {
  width: 100%;
  background: #f1c40f;
  color: #23282d;
  border: none;
  border-radius: 4px;
  padding: 11px 14px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 18px;
}

.auth-submit:hover {
  background: #0073aa;
  color: #fff;
}

.auth-card-footer {
  border-top: 1px solid #eee;
  padding: 14px 28px 20px;
  text-align: center;
  font-size: 0.85em;
  color: #666;
}

.auth-card-footer a {
  color: #0073aa;
  text-decoration: none;
}

.auth-card-footer a:hover {
  text-decoration: underline;
}
