/* Hasib Public (Landing/Login/Register) — minimal executive style */

:root{
  --bg: #ffffff;
  --fg: #0b0b12;
  --muted: rgba(11,11,18,.68);
  --border: rgba(11,11,18,.10);
  --shadow: 0 18px 40px rgba(11,11,18,.10);
  --shadow2: 0 10px 26px rgba(11,11,18,.08);

  --accent: #4b4b86; /* logo purple */
  --accent2: #2dd4bf; /* subtle teal */
  --ok: #0ea5e9;
  --danger: #dc2626;

  --radius: 18px;
  --radius2: 24px;
  --container: 1120px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body.public{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(900px 420px at 14% -10%, rgba(75,75,134,.12), rgba(255,255,255,0) 65%),
              radial-gradient(720px 420px at 92% 0%, rgba(45,212,191,.10), rgba(255,255,255,0) 60%),
              var(--bg);
  color: var(--fg);
}

a{ color: inherit; text-decoration:none; }
a:hover{ text-decoration:none; }

.p-inner{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.p-header{
  position: sticky;
  top:0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid var(--border);
}

.p-header .p-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.p-brand{ display:flex; align-items:center; gap: 10px; }
.p-logo{ width:34px; height:34px; display:block; }
.p-brand-name{
  font-weight: 700;
  letter-spacing: .2px;
}

.p-nav{ display:flex; align-items:center; gap: 10px; }
.p-link{
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
}
.p-link:hover{ background: rgba(11,11,18,.04); color: var(--fg); }

.p-btn{
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--fg);
  color:#fff;
  box-shadow: var(--shadow2);
}
.p-btn:hover{ transform: translateY(-1px); }

.p-lang{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.9);
  color: var(--fg);
  cursor:pointer;
}

.p-main{ padding: 26px 0 40px; }

.hero{
  padding: 34px 0 12px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: center;
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.75);
  color: var(--muted);
  font-size: 13px;
}
.kicker .dot{
  width: 8px; height: 8px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.h1{
  margin: 14px 0 10px;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.02em;
}
.h1 .accent{
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 56ch;
}

.hero-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.btn-primary{
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--fg);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover{ transform: translateY(-1px); }

.btn-secondary{
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.9);
  color: var(--fg);
}
.btn-secondary:hover{ background: rgba(255,255,255,1); }

.hero-note{
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.hero-art{
  border-radius: var(--radius2);
  border: 1px solid rgba(11,11,18,.08);
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow);
  padding: 14px;
}
.hero-art img{
  display:block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.section{
  padding: 22px 0;
}
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card{
  border: 1px solid rgba(11,11,18,.10);
  background: rgba(255,255,255,.82);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 24px rgba(11,11,18,.06);
}
.card h3{
  margin: 0 0 8px;
  font-size: 15px;
}
.card p{
  margin:0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.panel{
  border: 1px solid rgba(11,11,18,.10);
  background: rgba(255,255,255,.86);
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: var(--shadow2);
}

.panel h2{
  margin: 0 0 10px;
  font-size: 18px;
}
.panel ul{
  margin: 0; padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}

.cta{
  margin-top: 18px;
  padding: 22px;
  border-radius: var(--radius2);
  border: 1px solid rgba(11,11,18,.10);
  background: linear-gradient(135deg, rgba(75,75,134,.12), rgba(45,212,191,.10));
  box-shadow: var(--shadow2);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.cta h2{ margin:0; font-size: 18px; }
.cta p{ margin: 6px 0 0; color: var(--muted); }
.cta .cta-actions{ display:flex; gap: 10px; }

.form-shell{
  width: min(560px, calc(100% - 40px));
  margin: 24px auto 0;
  padding: 18px;
  border-radius: var(--radius2);
  border: 1px solid rgba(11,11,18,.10);
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow);
}

.form-shell h1{
  margin: 0 0 8px;
  font-size: 20px;
}
.form-shell .muted{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 16px;
}

label{ display:block; font-size: 13px; color: rgba(11,11,18,.72); margin-bottom: 6px; }
input, select{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(11,11,18,.14);
  background: rgba(255,255,255,.94);
  font-size: 14px;
  outline: none;
}
input:focus, select:focus{
  border-color: rgba(75,75,134,.55);
  box-shadow: 0 0 0 4px rgba(75,75,134,.12);
}

.row-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-actions{
  display:flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
  flex-wrap: wrap;
}
.notice{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(11,11,18,.10);
  background: rgba(255,255,255,.80);
  margin-bottom: 12px;
}
.notice.bad{
  border-color: rgba(220,38,38,.25);
  background: rgba(220,38,38,.06);
}
.notice.ok{
  border-color: rgba(14,165,233,.25);
  background: rgba(14,165,233,.06);
}

.p-footer{
  border-top: 1px solid var(--border);
  padding: 18px 0;
  color: var(--muted);
  background: rgba(255,255,255,.66);
}
.p-footer-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.p-footer-links a{
  margin-left: 10px;
  color: var(--muted);
}
.p-footer-links a:hover{ color: var(--fg); }

/* RTL tweaks */
html[dir="rtl"] .row-2{ grid-template-columns: 1fr 1fr; }
html[dir="rtl"] .panel ul{ padding-left: 0; padding-right: 18px; }
html[dir="rtl"] .p-footer-links a{ margin-left: 0; margin-right: 10px; }

/* Responsive */
@media (max-width: 960px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-art{ order: 2; }
  .hero-copy{ order: 1; }
  .grid-3{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
}
