/* MareWise branded login — aligned with marewise.ae marketing site (dark maritime) */

:root {
  --mw-bg: #0b1220;
  --mw-bg-elevated: #121a2b;
  --mw-border: rgba(255, 255, 255, 0.12);
  --mw-text: #f4f7fb;
  --mw-text-muted: #9aa8bd;
  --mw-accent: #3d8bfd;
  --mw-accent-hover: #5ca0ff;
  --mw-critical: #f87171;
  --mw-radius: 12px;
  --mw-font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.mw-login-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--mw-font);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(61, 139, 253, 0.18), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(100, 180, 255, 0.08), transparent 55%),
    var(--mw-bg);
  color: var(--mw-text);
}

.mw-login-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.mw-login-card {
  width: 100%;
  max-width: 420px;
  background: var(--mw-bg-elevated);
  border: 1px solid var(--mw-border);
  border-radius: var(--mw-radius);
  padding: 2rem 1.75rem 1.5rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.mw-login-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.mw-login-logo {
  display: block;
  margin: 0 auto 0.75rem;
  max-width: 200px;
  height: auto;
  /* Brand SVG is dark-on-light; invert for dark maritime login card */
  filter: brightness(0) invert(1);
}

.mw-login-tagline {
  margin: 0;
  font-size: 0.875rem;
  color: var(--mw-text-muted);
}

.mw-login-invite {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--mw-text-muted);
  text-align: center;
}

.mw-login-error {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: var(--mw-critical);
  font-size: 0.875rem;
}

.mw-login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mw-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mw-field-label {
  font-size: 0.8125rem;
  color: var(--mw-text-muted);
}

.mw-field-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--mw-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--mw-text);
  font-size: 1rem;
}

.mw-field-input:focus {
  outline: 2px solid rgba(61, 139, 253, 0.45);
  outline-offset: 1px;
  border-color: var(--mw-accent);
}

.mw-password-wrap {
  position: relative;
}

.mw-password-wrap .mw-field-input {
  padding-right: 2.75rem;
}

.mw-password-toggle {
  position: absolute;
  right: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--mw-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mw-password-toggle:hover,
.mw-password-toggle:focus-visible {
  color: var(--mw-text);
  background: rgba(255, 255, 255, 0.08);
}

.mw-password-toggle:focus-visible {
  outline: 2px solid rgba(61, 139, 253, 0.45);
  outline-offset: 1px;
}

.mw-password-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mw-password-toggle .mw-eye-off {
  display: none;
}

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

.mw-password-toggle.is-visible .mw-eye-off {
  display: block;
}

.mw-field-checkbox {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--mw-text-muted);
}

.mw-login-submit {
  margin-top: 0.25rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  background: var(--mw-accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.mw-login-submit:hover {
  background: var(--mw-accent-hover);
}

.mw-login-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
}

.mw-login-footer a {
  color: var(--mw-text-muted);
  text-decoration: none;
}

.mw-login-footer a:hover {
  color: var(--mw-text);
}

/* wp-login.php notice when invite-only filter runs on core login */
.login .mw-login-notice {
  border-left: 4px solid var(--mw-accent);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: #f4f7fb;
}
