/* Login / forgot-password pages only - kept in its own file, separate from
   style.css (the ported dashboard stylesheet), so its `.btn`/`.form-field` classes
   never collide with the dashboard's own differently-styled `.btn` conventions.
   Visual language borrowed from the OAMS CRM app's login page. */

:root {
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --color-brand: #2563eb;
  --color-brand-hover: #1d4ed8;
  --color-brand-light: #38bdf8;
  --color-brand-text: #1d4ed8;
  --color-bg: #f4f5f7;
  --color-sidebar: #0d1219;
  --color-border: #e1e5eb;
  --color-text: #11141a;
  --color-text-muted: #5c6673;
  --color-text-faint: #67708a;
  --color-danger: #d93025;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-sans); }

.btn {
  background-color: var(--color-brand);
  color: #ffffff;
  border: none;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s;
}
.btn:hover { background-color: var(--color-brand-hover); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }
.btn:active { transform: translateY(1px); }

.form-field { margin-bottom: 14px; text-align: left; }
.form-label { display: block; font-size: 12px; font-weight: 700; color: var(--color-text-muted); margin-bottom: 6px; }

.login-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-sidebar), #182233);
}

.login-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.35; z-index: 0; pointer-events: none; }
.login-glow-a { width: 420px; height: 420px; top: -120px; left: -100px; background: var(--color-brand); }
.login-glow-b { width: 360px; height: 360px; bottom: -140px; right: -90px; background: var(--color-brand-light); }

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border-radius: 20px;
  border-top: 4px solid var(--color-brand);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  padding: 36px 32px 30px;
  margin: 20px;
}

.login-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 26px; }
.login-logo-badge { width: 68px; height: 68px; display: flex; align-items: center; justify-content: center; background: var(--color-bg); border-radius: 18px; margin-bottom: 12px; }
.login-logo-img { max-width: 46px; max-height: 46px; object-fit: contain; }
.login-logo-fallback {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-hover));
  color: #ffffff; font-weight: 800; font-size: 19px;
}
.login-brand-name { font-weight: 800; font-size: 20px; color: var(--color-text); }
.login-brand-sub { font-size: 13px; color: var(--color-text-faint); text-align: center; }

.login-error { background: #fce8e6; color: var(--color-danger); font-size: 13px; font-weight: 600; padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 18px; text-align: center; }
.login-error-hint { font-size: 11.5px; font-weight: 500; color: var(--color-danger); margin-top: 4px; }

.login-input-group { position: relative; display: flex; align-items: center; }
.login-input-icon { position: absolute; left: 13px; width: 17px; height: 17px; color: var(--color-text-faint); pointer-events: none; }
.login-input {
  width: 100%; height: 44px; padding: 0 14px 0 40px;
  font-family: var(--font-sans); font-size: 14px; color: var(--color-text);
  background: #ffffff; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.login-input:focus { border-color: var(--color-brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.login-input::placeholder { color: var(--color-text-faint); }

.login-submit { width: 100%; margin-top: 10px; height: 44px; font-size: 15px; }
.login-forgot-link { display: block; text-align: center; margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--color-brand-text); text-decoration: none; }
.login-forgot-link:hover { text-decoration: underline; }
.login-subtext { font-size: 13px; color: var(--color-text-muted); text-align: center; line-height: 1.5; margin: 4px 0 18px; }
.login-success { background: #dcfce7; color: #166534; font-size: 13.5px; font-weight: 600; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; text-align: center; }
