/* ============================================================
   ALMAS Finos Accounts Pro — Premium Auth Pages (login / register / forgot)
   ============================================================ */
:root {
  --accent: #2563eb;
  --accent-2: #059669;
  --accent-dark: #1d4ed8;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e5e9f0;
  --radius: 16px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(900px 520px at 8% -10%, rgba(37,99,235,.14), transparent 55%),
              radial-gradient(760px 420px at 110% 0%, rgba(5,150,105,.12), transparent 52%),
              linear-gradient(160deg, #eef4fc 0%, #e8f1fb 55%, #f0f8f5 100%);
  padding: 20px;
}
.auth-wrap { width: 100%; max-width: 430px; }
.auth-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: 0 16px 50px rgba(15,23,42,.14);
  overflow: hidden;
}
.brand-badge {
  width: 58px; height: 58px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.7rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px rgba(37,99,235,.38);
}
.auth-brand { text-align: center; margin-bottom: 1.5rem; }
.auth-brand h4 { font-weight: 700; margin: .8rem 0 .15rem; letter-spacing: -.01em; }
.auth-brand small { color: var(--muted); }

.auth-body { padding: 2.25rem 2.25rem 2rem; }

.form-label { font-weight: 600; color: #334155; font-size: .85rem; margin-bottom: .35rem; }
.form-control {
  border-radius: 11px; border: 1px solid #d7dce3; padding: .7rem .85rem;
  font-size: .95rem; transition: border-color .14s ease, box-shadow .14s ease;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.14); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none; border-radius: 11px; padding: .7rem 1rem; font-weight: 600;
  box-shadow: 0 6px 18px rgba(37,99,235,.32);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37,99,235,.4); background: linear-gradient(135deg, var(--accent-dark), var(--accent-2)); }

.alert { border-radius: 10px; border: none; font-size: .88rem; }
.alert-danger { background: #fef2f2; color: #991b1b; }
.alert-success { background: #ecfdf5; color: #065f46; }

.auth-foot { margin-top: 1.4rem; text-align: center; font-size: .88rem; }
.auth-foot a { color: var(--accent); text-decoration: none; font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }
.auth-back { text-align: center; margin-top: 1.4rem; font-size: .85rem; }
.auth-back a { color: var(--muted); text-decoration: none; }
.auth-back a:hover { color: var(--accent); }

.input-icon { position: relative; }
.input-icon .form-control { padding-left: 2.5rem; }
.input-icon .ii { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: #94a3b8; display: flex; }

.small-link { font-size: .85rem; }

/* ============================================================
   Login page — compact modern layout (login.php only)
   Scoped to body.login-page so other auth pages are unaffected.
   ============================================================ */
html.login-html {
  background: linear-gradient(180deg, #f5f8fd 0%, #eef3fb 100%);
}
body.login-page {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 32px 16px;
  background:
    radial-gradient(ellipse 1000px 650px at 100% 0%, rgba(59,130,246,.42), rgba(59,130,246,0) 60%),
    radial-gradient(ellipse 1000px 650px at 0% 100%, rgba(20,184,166,.38), rgba(20,184,166,0) 60%),
    linear-gradient(180deg, #f5f8fd 0%, #eef3fb 100%);
}
body.login-page .login-box {
  width: 480px; max-width: 92%;
  background: linear-gradient(135deg, rgba(244,250,255,.93) 0%, rgba(242,251,247,.93) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  backdrop-filter: blur(14px) saturate(1.05);
  border: 1px solid rgba(56,168,255,.18);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(37,99,235,.12), 0 10px 24px rgba(20,184,166,.08), 0 2px 6px rgba(30,58,138,.05);
  padding: 36px 38px;
}
body.login-page .login-logo {
  display: block; width: 200px; height: auto;
  max-width: 200px;
  object-fit: contain; margin: 0 auto 18px;
  mix-blend-mode: multiply;
}
body.login-page .login-title {
  font-size: 30px; font-weight: 800; color: #15233b;
  text-align: center; letter-spacing: -.01em; line-height: 1.2;
  margin: 0 0 6px;
}
body.login-page .login-sub {
  font-size: 16px; color: #64748b; text-align: center;
  margin: 0 0 26px;
}
body.login-page .login-form { margin-top: 0; }
body.login-page .login-field { position: relative; margin-bottom: 14px; }
body.login-page .login-input {
  width: 100%; height: 62px; border: 1px solid #d9e2f0; border-radius: 14px;
  background: #f9fcff; color: #15233b; font-size: 16px;
  padding: 0 1.2rem 0 3rem;
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
body.login-page .login-input.with-toggle { padding-right: 3rem; }
body.login-page .login-input::placeholder { color: #94a3b8; }
body.login-page .login-input:focus {
  outline: none; border-color: #2563eb; background: #fff;
  box-shadow: 0 0 0 4px rgba(37,99,235,.13);
}
body.login-page .login-field .fi {
  position: absolute; left: 1.05rem; top: 50%; transform: translateY(-50%);
  color: #8a99b2; display: flex; pointer-events: none;
}
body.login-page .login-field .fi svg { width: 20px; height: 20px; }
body.login-page .pw-toggle {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: #8a99b2; border-radius: 10px; cursor: pointer;
  transition: color .14s ease, background .14s ease;
}
body.login-page .pw-toggle svg { width: 20px; height: 20px; }
body.login-page .pw-toggle:hover { color: #2563eb; background: #eef2ff; }
body.login-page .login-forgot-row { display: flex; justify-content: flex-end; margin: 6px 0 16px; }
body.login-page .login-forgot { font-size: 14px; font-weight: 600; color: #2563eb; text-decoration: none; }
body.login-page .login-forgot:hover { color: #1d4ed8; text-decoration: underline; }
body.login-page .login-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; height: 62px; border: none; border-radius: 14px; cursor: pointer;
  background: linear-gradient(90deg, #2563eb 0%, #0d9488 100%);
  color: #fff; font-size: 18px; font-weight: 700; letter-spacing: .01em;
  box-shadow: 0 10px 24px rgba(37,99,235,.30);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
body.login-page .login-btn svg { stroke: #fff; flex-shrink: 0; width: 20px; height: 20px; }
body.login-page .login-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(37,99,235,.38); filter: brightness(1.04); }
body.login-page .login-btn:active { transform: translateY(0); }
body.login-page .alert { margin-bottom: 16px; }
@media (max-width: 480px) {
  body.login-page { padding: 24px 16px; }
  body.login-page .login-box { padding: 26px 20px; }
  body.login-page .login-logo { margin-bottom: 16px; }
}