/* ============================================================================
   auth-split-login.css — Split-Panel Enterprise Login
   Sheridan Security Systems — Task Management Portal
   ============================================================================
   SCOPE: This file styles ONLY the login page.
   DO NOT import this in global app.css or admin layout.
   LOCK: LOCK-login-theme-v2
   ============================================================================ */

:root{
  --brand: #11b59a;
  --brand-dark: #0ea88f;
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #eef2f7;
  --card: #ffffff;
  --border: rgba(15,23,42,.10);
}

*, *::before, *::after{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body{
  height:100%;
}

body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans",
               "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 20% 10%, #f7fafc 0%, var(--bg) 55%, #e9eef6 100%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Wrapper ---------- */
.auth-wrap{
  min-height:100vh;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  padding: 32px 16px;
}

/* ---------- Shell (split card) ---------- */
.auth-shell{
  width: min(1100px, 96vw);
  min-height: 560px;
  background: var(--card);
  border-radius: 28px;
  overflow:hidden;
  box-shadow: 0 24px 60px rgba(2, 6, 23, .18);
  display:grid;
  grid-template-columns: 1fr 1.15fr;
  border: 1px solid rgba(2,6,23,.06);
}

/* ---------- Left Panel (brand / green) ---------- */
.auth-left{
  position:relative;
  padding: 54px 52px;
  background: var(--brand);
  color: #fff;
  display:flex;
  flex-direction:column;
  justify-content:center;
  overflow: hidden;
}

.auth-left h2{
  margin:0 0 10px 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.auth-left .sub{
  margin:0 0 18px 0;
  opacity:.92;
  font-size: 14px;
  line-height: 1.6;
  max-width: 380px;
}

.auth-left ul{
  margin: 14px 0 0 18px;
  padding:0;
  max-width: 420px;
  opacity: .95;
  font-size: 13.5px;
  line-height: 1.7;
}

.auth-left ul li{
  margin-bottom: 6px;
}

.auth-left .pill{
  margin-top: 22px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  width: fit-content;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.14);
  color: #fff;
  text-decoration:none;
  font-weight: 600;
  font-size: 13.5px;
  transition: background .15s ease;
}

.auth-left .pill:hover{
  background: rgba(255,255,255,.22);
}

/* Semi-circle ring (matches reference image) */
.auth-left::after{
  content:"";
  position:absolute;
  right:-84px;
  top:50%;
  transform: translateY(-50%);
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 26px solid rgba(255,255,255,.75);
  box-sizing:border-box;
  pointer-events:none;
}

/* ---------- Right Panel (form) ---------- */
.auth-right{
  padding: 56px 64px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background: #fff;
}

/* ---------- Brand mark (right panel) ---------- */
.auth-brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom: 18px;
}

.auth-logo{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: rgba(17,181,154,.14);
  border: 1px solid rgba(17,181,154,.25);
  color: var(--brand);
}

/* ---------- Title ---------- */
.auth-title{
  margin: 4px 0 6px 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing:.2px;
  text-align:center;
  color: var(--ink);
}

.auth-title::after{
  content:"";
  display:block;
  width: 28px;
  height: 3px;
  border-radius: 6px;
  background: var(--brand);
  margin: 10px auto 0 auto;
}

.auth-note{
  text-align:center;
  color: var(--muted);
  margin: 0 0 26px 0;
  font-size: 13px;
}

/* ---------- Form ---------- */
.form{
  width: min(420px, 100%);
  margin: 0 auto;
}

.field{
  margin-bottom: 16px;
}

.field label{
  display:block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111827;
}

.control{
  position:relative;
}

.input{
  width:100%;
  height: 48px;
  padding: 0 46px 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
  outline:none;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  transition: .15s ease;
}

.input:hover{
  border-color: rgba(15,23,42,.18);
}

.input:focus{
  border-color: rgba(17,181,154,.65);
  box-shadow: 0 0 0 4px rgba(17,181,154,.14);
  background: #fff;
}

.input::placeholder{
  color: #94a3b8;
}

/* ---------- Eye toggle ---------- */
.icon-btn{
  position:absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border:0;
  background:transparent;
  cursor:pointer;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display:grid;
  place-items:center;
  color: rgba(15,23,42,.55);
  transition: background .15s ease;
}

.icon-btn:hover{
  background: rgba(2,6,23,.05);
}

/* ---------- Remember / help row ---------- */
.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin: 8px 0 18px 0;
  font-size: 13px;
  color: var(--muted);
}

.row label{
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}

.row a{
  color: var(--brand-dark);
  text-decoration:none;
  font-weight: 700;
}

.row a:hover{
  text-decoration: underline;
}

/* ---------- Submit ---------- */
.btn{
  width:100%;
  height: 50px;
  border-radius: 999px;
  border:0;
  background: var(--brand);
  color:#fff;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  letter-spacing:.4px;
  cursor:pointer;
  box-shadow: 0 16px 28px rgba(17,181,154,.30);
  transition: .15s ease;
}

.btn:hover{
  background: var(--brand-dark);
  box-shadow: 0 12px 24px rgba(17,181,154,.35);
}

.btn:active{
  transform: translateY(1px);
  box-shadow: 0 6px 16px rgba(17,181,154,.25);
}

.btn:focus-visible{
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ---------- Divider ---------- */
.hr{
  margin: 26px 0 14px 0;
  border:0;
  height:1px;
  background: rgba(15,23,42,.08);
}

/* ---------- Small caption ---------- */
.small{
  text-align:center;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

/* ---------- Error ---------- */
.auth-error{
  margin-top: 8px;
  color: #b91c1c;
  font-size: 12.5px;
  font-weight: 650;
}

/* ---------- Footer ---------- */
.auth-footer{
  margin-top: 14px;
  text-align:center;
  color: rgba(100,116,139,.9);
  font-size: 12px;
}

/* ---------- Responsive: stack on mobile ---------- */
@media (max-width: 900px){
  .auth-shell{
    grid-template-columns: 1fr;
    min-height: auto;
    border-radius: 20px;
  }
  .auth-left{
    padding: 36px 24px;
  }
  .auth-left::after{
    display:none;
  }
  .auth-left h2{
    font-size: 22px;
  }
  .auth-right{
    padding: 36px 22px;
  }
  .row{
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 480px){
  .auth-wrap{
    padding: 12px 8px;
  }
  .auth-shell{
    border-radius: 16px;
  }
  .auth-left{
    padding: 28px 18px;
  }
  .auth-left h2{
    font-size: 20px;
  }
  .auth-right{
    padding: 28px 16px;
  }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: high){
  .input{
    border-width: 2px;
    border-color: var(--ink);
  }
  .btn{
    border: 2px solid var(--brand-dark);
  }
}
