/* ====== Login page (clean) ====== */
:root{
  --brand: #0050F5;
  --brand-hover: #1bc26e;
  --box-bg: rgba(0, 0, 0, 0.62);
  --text: #fff;
  --muted: #aab4c1;
  --error: #ff6961;

  /* Default: crisp SVG eyes */
  --icon-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23aab4c1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  --icon-eye-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23aab4c1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.94 10.94 0 0 1 12 19c-7 0-11-7-11-7a20.8 20.8 0 0 1 5.06-5.94'/%3E%3Cpath d='M1 1l22 22'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

/* If you prefer your favicon for both states, replace the two lines above with:
:root{ --icon-eye:url('/favicon.ico'); --icon-eye-off:url('/favicon.ico'); }
*/

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Coolvetica-Light', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  min-height: 100svh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(0,0,0,.85), rgba(0,0,0,.85)),
    url('../images/artistic-blurry-colorful-wallpaper-background copy.jpg') no-repeat center/cover fixed;
}

/* ---------- Card ---------- */
.login-container{
  width: min(360px, 92vw);
  padding: 32px;
  background: var(--box-bg);
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(72,175,243,.45);
}

.login-container h2{
  margin: 0 0 18px;
  font-family: 'Coolvetica-Bold', inherit;
  font-size: 1.9rem;
  color: var(--brand-hover);
}

/* ---------- Fields ---------- */
label{
  display: block;
  margin: 12px 0 6px;
  font-size: .95rem;
  opacity: .85;
}

input, button{ font: inherit; }

input[type="text"],
input[type="password"]{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  background: #fff;
  color: #0b1220;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}

input[type="text"]:focus,
input[type="password"]:focus{
  border-color: rgba(59,130,246,.55);
  box-shadow: 0 0 0 3px rgba(59,130,246,.25);
}

/* password + icon inside */
.input-with-icon{ position: relative; }
.input-with-icon input{ padding-right: 44px; }

.pwd-toggle{
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  padding: 0; border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  z-index: 2;
}

.pwd-toggle::before{
  content: "";
  display: block;
  width: 80%; height: 80%;
  background: no-repeat center / contain var(--icon-eye);
}
.pwd-toggle[aria-pressed="true"]::before{
  background-image: var(--icon-eye-off);
}
.pwd-toggle:hover,
.pwd-toggle:focus{ color: #fff; }
.pwd-toggle:focus{ outline: 2px solid #3b82f6; border-radius: 6px; }

/* ---------- Button ---------- */
button[type="submit"]{
  display: block;
  width: 68%;
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s ease, transform .06s ease;
}
button[type="submit"]:hover{ background: var(--brand-hover); }
button[type="submit"]:active{ transform: translateY(1px); }

/* ---------- Error text ---------- */
.error-message{
  margin-top: 14px;
  color: var(--error);
  font-size: .92rem;
}

/* ---------- a11y / motion ---------- */
@media (prefers-reduced-motion: reduce){
  * { transition: none !important; }
}
