/* ============================================================
   Webmail — login page
   ============================================================ */

:root {
  --green:        #4f7c2e;
  --green-dark:   #3d6123;
  --green-light:  #ecf3e3;
  --green-ring:   rgba(79, 124, 46, .18);

  --orange:       #d95a3c;
  --orange-light: #fdeee9;

  --surface:      #ffffff;
  --border:       #e4e7eb;
  --border-strong:#d4d8de;
  --text:         #161b22;
  --muted:        #6c7480;

  --font-sans:
    "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont,
    "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Global anchor reset — kills default browser purple/underline */
a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
  color: inherit;
  text-decoration: none;
}

body {
  font-family: var(--font-sans);
  font-feature-settings: "cv11", "ss01";
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #f0f7e9 0%, #fdf6f2 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Card ─────────────────────────────────────────────────── */

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border-radius: 14px;
  box-shadow:
    0 20px 50px rgba(15, 23, 42, .10),
    0 4px 12px rgba(15, 23, 42, .05);
  padding: 32px 32px 28px;
}

/* ── Brand (horizontal, centred, clean) ───────────────────── */

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 26px;
  text-decoration: none;
  color: var(--text);
  transition: opacity .12s;
}
.login-brand:hover { opacity: .85; }

.login-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
}

.login-brand h1 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--text);
}

/* ── Alerts ───────────────────────────────────────────────── */

.alert {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.45;
}
.alert.error {
  background: var(--orange-light);
  color: var(--orange);
  border: 1px solid #f4cabb;
}
.alert.info {
  background: var(--green-light);
  color: var(--green-dark);
  border: 1px solid #d4e7c3;
}

/* ── Form ─────────────────────────────────────────────────── */

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
label span {
  font-weight: 500;
  letter-spacing: .005em;
}

input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-ring);
}

.btn-primary {
  margin-top: 8px;
  padding: 11px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
}
.btn-primary:hover:not(:disabled) { background: var(--green-dark); }
.btn-primary:disabled {
  background: var(--muted);
  cursor: not-allowed;
  opacity: .7;
}

/* ── Honeypot (hidden but technically present) ────────────── */

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}