/* public/assets/login.css */

:root{
  --text:#0f172a;
  --muted:#64748b;
  --border: rgba(15,23,42,.10);

  /* manji shadow */
  --shadow: 0 10px 26px rgba(15,23,42,.08);
  --shadow2: 0 10px 24px rgba(15,23,42,.07);

  --ring: 0 0 0 4px rgba(59, 130, 246, .14);
  --radius: 18px;

  --glass: rgba(255,255,255,.64);
  --glass2: rgba(255,255,255,.78);
}

/* ✅ SVJETLA POZADINA CIJELE STRANICE (bez tamnih tonova) */
body.auth-body{
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  color: var(--text);

  background:
    radial-gradient(1200px 820px at 16% 18%, rgba(255,255,255,.94), transparent 58%),
    radial-gradient(1100px 760px at 84% 74%, rgba(224,228,236,.88), transparent 62%),
    radial-gradient(900px 520px at 64% 20%, rgba(212,218,228,.62), transparent 60%),
    linear-gradient(180deg, #f1f3f7 0%, #e8ecf2 48%, #dde2ea 100%);

  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}

/* layout shell */
.auth-shell{
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

/* lijevi panel */
.auth-panel{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 8px rgb(15 23 42 / 9%);
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  padding: 34px 34px 30px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 440px;
}
.auth-panel:before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(760px 360px at 18% 18%, rgba(99,102,241,.10), transparent 62%),
    radial-gradient(740px 360px at 85% 80%, rgba(20,184,166,.08), transparent 64%);
  pointer-events:none;
  opacity: .9;
}
.auth-panel-inner{ position: relative; z-index: 1; }

.auth-panel-logo-wrap{
  display:flex;
  align-items:center;
  gap: 14px;
  margin-bottom: 16px;
}
.auth-panel-logo{
  height: auto;
  width: 250px;
  display:block;
  filter: drop-shadow(0 6px 12px rgba(15,23,42,.18));
}

.auth-panel-copy{
  margin-top: 16px;
  color: rgba(15,23,42,.76);
  font-size: 14px;
  line-height: 1.55;
  max-width: 54ch;
}

.auth-panel-badges{
  margin-top: 18px;
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.auth-badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(15,23,42,.10);
  font-size: 12px;
  color: rgba(15,23,42,.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.auth-dot{
  width: 8px; height: 8px; border-radius: 999px;
  background: rgba(37,99,235,.85);
  box-shadow: 0 0 0 3px rgba(37,99,235,.14);
}

.auth-panel-footer{
  margin-top: 22px;
  font-size: 12px;
  color: rgba(15,23,42,.58);
  position: relative;
  z-index: 1;
}

/* desni card */
.auth-card{
  border-radius: var(--radius);
  background: var(--glass2);
  border: 1px solid var(--border);
  box-shadow: 0 1px 8px rgb(15 23 42 / 9%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 26px;
  display:flex;
  flex-direction: column;
  justify-content: center;
  min-height: 440px;
}

.auth-card-head{
  margin-bottom: 10px;
}
.auth-card-title{
  font-size: 18px;
  font-weight: 750;
  letter-spacing: .2px;
  color: var(--text);
  margin: 0 0 4px 0;
}
.auth-card-sub{
  font-size: 13px;
  color: rgba(15,23,42,.62);
  margin: 0 0 2px 0;
}

.auth-form{ margin-top: 6px; }

.auth-label{
  display:block;
  font-size: 12px;
  font-weight: 800;
  color: rgba(15,23,42,.70);
  margin: 14px 0 6px;
}

.auth-input{
  width: 100%;
  box-sizing: border-box;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.82);
  outline: none;
  font-size: 14px;
  color: var(--text);
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease, transform .12s ease;
}
.auth-input::placeholder{
  color: rgba(15,23,42,.42);
}
.auth-input:hover{
  background: rgba(255,255,255,.90);
  border-color: rgba(15,23,42,.16);
}
.auth-input:focus{
  background: rgba(255,255,255,.96);
  border-color: rgba(59,130,246,.45);
  box-shadow: var(--ring);
}

.auth-error{
  margin-top: 14px;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(239,68,68,.22);
  background: rgba(239,68,68,.07);
  color: #991b1b;
  font-size: 13px;
  font-weight: 700;
}

.btn.btn-primary.w-100,
.btn.btn-primary{
  width: 100%;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.12);
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .2px;
  color: #fff;
  background: linear-gradient(309deg, #1f2937 0%, #5f7280 55%, #1f2937 100%);
  box-shadow: 0 8px 18px rgba(15,23,42,.10);
  transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
}
.btn.btn-primary:hover{
  filter: brightness(1.03);
  box-shadow: 0 10px 22px rgba(15,23,42,.12);
  transform: translateY(-1px);
}
.btn.btn-primary:active{
  transform: translateY(0px);
  box-shadow: 0 8px 16px rgba(15,23,42,.10);
}

.auth-lang{
  margin-top: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  color: rgba(15,23,42,.55);
  font-size: 13px;
}
.auth-lang a{
  text-decoration: none;
  color: rgba(15,23,42,.78);
  font-weight: 650;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.76);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.auth-lang a:hover{
  border-color: rgba(59,130,246,.25);
  box-shadow: 0 8px 18px rgba(15,23,42,.06);
  background: rgba(255,255,255,.92);
  transform: translateY(-1px);
}
.auth-lang a.is-active{
  border-color: rgba(59,130,246,.38);
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
  background: rgba(255,255,255,.96);
}

/* responsive */
@media (max-width: 960px){
  .auth-shell{ grid-template-columns: 1fr; max-width: 560px; }
  .auth-panel{ min-height: auto; padding: 26px; }
  .auth-card{ min-height: auto; }
}
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; }
}