/* DD Seva — login / register / password pages.
   Light grey page with soft white wave lines (assets/img/auth-waves.svg, our own drawing),
   logo centred above a small white card. */
@font-face{font-family:"Poppins";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/poppins-400-latin.woff2") format("woff2")}
@font-face{font-family:"Poppins";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/poppins-500-latin.woff2") format("woff2")}
@font-face{font-family:"Poppins";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/poppins-600-latin.woff2") format("woff2")}
@font-face{font-family:"Poppins";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/poppins-700-latin.woff2") format("woff2")}
:root {
  --text: #343a40; --label: #495057; --muted: #6c757d; --faint: #adb5bd; --line: #dee2e6; --field: #ced4da;
  --blue: #0d6efd; --blue-dark: #0b5ed7; --red: #e8112d; --danger: #b42318;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.auth-page {
  min-height: 100vh; font-family: var(--font); color: var(--text); font-size: 14px;
  background:
    url("../img/auth-waves.svg") center / cover no-repeat fixed,
    radial-gradient(ellipse at 35% 5%, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, #f2f3f5 0%, #e4e6e9 45%, #cbd0d7 100%);
  background-color: #eceef1;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; justify-content: center;
}
.auth-shell { width: min(340px, calc(100% - 28px)); margin: 48px auto; }
.auth-shell.wide { width: min(560px, calc(100% - 28px)); }
.auth-brand { display: flex; justify-content: center; margin: 0 0 14px; }
.auth-logo { display: block; width: 168px; height: auto; }

/* card: white frame + thin inner box */
.auth-card { background: #fff; border: 1px solid #e6e8ec; border-radius: 4px; padding: 11px; box-shadow: 0 2px 14px rgba(33, 37, 41, .07); }
.auth-inner { border: 1px solid var(--line); border-radius: 3px; padding: 22px 18px 20px; }
.auth-card h1 { margin: 0; text-align: center; font-size: 22px; font-weight: 600; letter-spacing: .3px; color: var(--text); }
.auth-sub { margin: 6px 0 0; text-align: center; color: var(--label); font-size: 12.5px; }
.auth-badge { display: inline-block; margin-left: 3px; padding: 1px 6px 2px; border-radius: 3px; background: var(--red); color: #fff; text-decoration: none; font-size: 10.5px; font-weight: 600; line-height: 1.5; vertical-align: 1px; }
.auth-badge:hover { background: #c40d25; }

.auth-social { margin-top: 20px; }
.btn-google { width: 100%; height: 38px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid #dadce0; border-radius: 4px; background: #fff; color: #3c4043; font-size: 13.5px; font-weight: 500; text-decoration: none; transition: background .15s, box-shadow .15s; box-sizing: border-box; }
.btn-google:hover { background: #f8faff; box-shadow: 0 1px 3px rgba(60,64,67,.18); }
.btn-google:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn-google.off { color: #80868b; background: #f6f7f9; cursor: not-allowed; font-size: 12.5px; }
.btn-google.off .g-logo { filter: grayscale(1); opacity: .55; }
.auth-social + .auth-or { margin-top: 18px; }
.auth-or { display: flex; align-items: center; gap: 8px; margin: 26px 0 16px; color: var(--faint); font-size: 9.5px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.auth-alert { background: #fdecec; color: var(--danger); border: 1px solid #f5c2c7; border-radius: 4px; padding: 9px 11px; margin: 14px 0 0; font-size: 12.5px; font-weight: 500; }
.auth-alert.ok { background: #e8f5ee; color: #146c43; border-color: #badbcc; }
.auth-alert.info { background: #e7f1ff; color: #084298; border-color: #b6d4fe; }
.auth-alert a { color: inherit; font-weight: 600; }

.auth-form label { display: block; margin: 0 0 6px; font-size: 12.5px; font-weight: 400; color: var(--label); }
.auth-form input[type="text"], .auth-form input[type="email"], .auth-form input[type="password"], .auth-form input[type="tel"], .auth-form select {
  width: 100%; height: 36px; margin-bottom: 14px; padding: 0 10px; border: 1px solid var(--field); border-radius: 4px;
  font: inherit; font-size: 13px; color: var(--text); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.auth-form input::placeholder { color: var(--faint); }
.auth-form input:focus, .auth-form select:focus { border-color: #86b7fe; box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .2); }
.auth-form .err { color: var(--danger); font-size: 12px; margin: -10px 0 12px; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .auth-grid { grid-template-columns: 1fr; } }

.pass-wrap { position: relative; margin-bottom: 14px; }
.pass-wrap input { margin-bottom: 0 !important; padding-right: 38px !important; }
.pass-toggle { position: absolute; top: 0; right: 0; width: 38px; height: 36px; border: 0; background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; }
.pass-toggle span { display: grid; }
.pass-toggle .pt-on, .pass-toggle.on .pt-off { display: none; }
.pass-toggle.on .pt-on { display: grid; color: var(--blue); }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 14px; font-size: 12.5px; }
.auth-row a { color: var(--blue); text-decoration: none; }
.auth-row a:hover { text-decoration: underline; }
.remember { display: inline-flex !important; align-items: center; gap: 7px; margin: 0 !important; color: var(--label) !important; cursor: pointer; }
/* Remember Me = toggle switch (a real checkbox, so it still posts remember=1) */
.remember input.switch { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 26px; height: 14px; margin: 0; border-radius: 999px; border: 1px solid #bfc5cc; background: #fff; cursor: pointer; transition: background .15s, border-color .15s; }
.remember input.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: #bfc5cc; transition: transform .15s, background .15s; }
.remember input.switch:checked { background: var(--blue); border-color: var(--blue); }
.remember input.switch:checked::after { transform: translateX(12px); background: #fff; }
.remember input.switch:focus-visible { outline: 2px solid #86b7fe; outline-offset: 2px; }

.hint { font-size: 12px; color: var(--muted); margin: -8px 0 14px; }
.btn-primary { width: 100%; height: 36px; border: 1px solid var(--blue); border-radius: 4px; background: var(--blue); color: #fff; font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; transition: background .15s; }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-primary:disabled { opacity: .8; cursor: wait; }
.btn-primary .ic { stroke-width: 2.1; }

.auth-note { text-align: center; color: var(--muted); font-size: 11.5px; line-height: 1.55; margin: 14px 0 0; }
.auth-note a { color: var(--blue); text-decoration: none; }
.auth-back { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; text-align: center; margin: 16px 0 0; font-size: 12px; color: var(--faint); }
.auth-back a { color: var(--muted); text-decoration: none; }
.auth-back a:hover { color: var(--blue); }
:focus-visible { outline: 2px solid #86b7fe; outline-offset: 2px; }
@media (max-width: 480px) {
  .auth-shell { margin: 32px auto; }
  .auth-logo { width: 150px; }
  .auth-form input[type="text"], .auth-form input[type="email"], .auth-form input[type="password"], .auth-form input[type="tel"] { height: 40px; font-size: 16px; }
  .pass-toggle { height: 40px; }
}
