/* =========================================================
   HIS INTERN — forgot-password.css
   Aesthetic: refined dark utility / industrial-minimal
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Syne:wght@600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0e0f11;
  --surface:    #161719;
  --panel-bg:   #131416;
  --border:     #2a2c31;
  --border-hi:  #3e4047;
  --accent:     #c8f060;
  --accent-dim: #9db840;
  --text-1:     #f0f0ee;
  --text-2:     #9a9b9e;
  --text-3:     #5c5d62;
  --error:      #ff5f5f;
  --error-bg:   rgba(255,95,95,.08);
  --ok-bg:      rgba(200,240,96,.07);
  --ok-text:    #c8f060;
  --radius:     10px;
  --transition: .18s cubic-bezier(.4,0,.2,1);
}

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Subtle grid texture on bg ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .18;
  pointer-events: none;
  z-index: 0;
}

/* ── Shell / layout ── */
.login-shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
}

/* ── Panel: side-by-side copy + card ── */
.login-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
  max-width: 900px;
  min-height: 520px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.03),
    0 32px 80px rgba(0,0,0,.55);
  animation: panel-in .55s cubic-bezier(.22,1,.36,1) both;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(22px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* ── Left: copy / branding ── */
.login-copy {
  background: var(--panel-bg);
  border-right: 1px solid var(--border);
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* decorative accent bar */
.login-copy::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--accent) 35%, var(--accent-dim) 70%, transparent);
}

/* decorative glow blob */
.login-copy::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(200,240,96,.08) 0%, transparent 70%);
  pointer-events: none;
}

.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}

.login-copy h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-1);
  margin-bottom: 18px;
  letter-spacing: -.02em;
}

.login-copy p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 28ch;
}

/* ── Right: form card ── */
.login-card {
  background: var(--surface);
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

/* ── Messages ── */
.msg {
  padding: 13px 16px;
  border-radius: 7px;
  font-size: 13.5px;
  line-height: 1.55;
  border: 1px solid;
  background: var(--ok-bg);
  border-color: rgba(200,240,96,.22);
  color: var(--ok-text);
}

.msg-error {
  background: var(--error-bg);
  border-color: rgba(255,95,95,.22);
  color: var(--error);
}

/* ── Labels & inputs ── */
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

label span {
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color var(--transition);
}

label:focus-within span {
  color: var(--accent);
}

input[type="email"],
input[type="text"],
input[type="password"] {
  width: 100%;
  background: #1a1b1e;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 11px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14.5px;
  color: var(--text-1);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  caret-color: var(--accent);
}

input[type="email"]::placeholder,
input[type="text"]::placeholder,
input[type="password"]::placeholder {
  color: var(--text-3);
}

input[type="email"]:focus,
input[type="text"]:focus,
input[type="password"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,240,96,.12);
}

input[type="email"]:invalid:not(:placeholder-shown) {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(255,95,95,.1);
}

/* ── Submit button ── */
button[type="submit"],
.btn-primary {
  width: 100%;
  padding: 12px 20px;
  background: var(--accent);
  color: #0e0f11;
  border: none;
  border-radius: 7px;
  font-family: 'Syne', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(200,240,96,.18);
  margin-top: 4px;
}

button[type="submit"]:hover {
  background: #d8ff6a;
  box-shadow: 0 6px 28px rgba(200,240,96,.28);
  transform: translateY(-1px);
}

button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(200,240,96,.14);
}

button[type="submit"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Back link ── */
.login-card a,
.login-card a:visited {
  color: var(--text-2);
  text-decoration: none;
  font-size: 13.5px;
  transition: color var(--transition);
}

.login-card a:hover {
  color: var(--accent);
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .login-panel {
    grid-template-columns: 1fr;
    min-height: unset;
    max-width: 440px;
  }

  .login-copy {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 36px 28px;
  }

  .login-copy::before {
    width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent) 35%, var(--accent-dim) 70%, transparent);
  }

  .login-copy p { max-width: 100%; }

  .login-card {
    padding: 36px 28px;
  }
}

@media (max-width: 400px) {
  .login-copy, .login-card { padding: 28px 20px; }
}
