/* TARHVIZHE_SHARED_WEBAPP_AUTH_PORTAL_V1
   Shared login UI for Sales WebApp + Call Center WebApp.
   Scope is intentionally limited to body.auth-portal-page / .auth-portal. */

body.auth-portal-page{
  --auth-accent:#3156d3;
  --auth-accent-2:#6d5dfc;
  --auth-accent-soft:rgba(49,86,211,.10);
  --auth-ink:#152033;
  --auth-muted:#6d788b;
  --auth-line:#e4e9f1;
  --auth-surface:#ffffff;
  --auth-shadow:0 28px 85px rgba(23,37,61,.14);
  margin:0;
  min-height:100vh;
  padding-bottom:0!important;
  color:var(--auth-ink);
  background:
    radial-gradient(circle at 12% 12%,rgba(109,93,252,.11),transparent 30%),
    radial-gradient(circle at 88% 82%,rgba(49,86,211,.09),transparent 28%),
    linear-gradient(145deg,#f3f6fb 0%,#eef3fa 44%,#f8fafc 100%);
}

body.auth-portal-page--callcenter{
  --auth-accent:#0b5aa6;
  --auth-accent-2:#1684cf;
  --auth-accent-soft:rgba(11,90,166,.10);
  background:
    radial-gradient(circle at 10% 16%,rgba(22,132,207,.10),transparent 30%),
    radial-gradient(circle at 90% 84%,rgba(11,90,166,.09),transparent 30%),
    linear-gradient(145deg,#f2f7fb 0%,#edf4f9 46%,#f8fafc 100%);
}

.auth-portal-page .container,
.auth-portal-page .app-main{
  width:100%!important;
  max-width:none!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
}

.auth-portal-page .app-header,
.auth-portal-page .ambient{display:none!important}

.auth-portal-page .app-credits,
.auth-portal-page .app-footer{
  width:auto!important;
  max-width:none!important;
  margin:0!important;
  padding:0 18px 18px!important;
  color:#8995a7!important;
  background:transparent!important;
  font-size:11px!important;
}

.auth-portal-page .app-credits b,
.auth-portal-page .app-footer .developer-credit{color:#5f6d80!important}

.auth-portal{
  min-height:calc(100vh - 54px);
  display:grid;
  place-items:center;
  padding:34px 24px 24px;
  direction:rtl;
}

.auth-portal *{box-sizing:border-box}

.auth-portal__frame{
  width:min(1120px,100%);
  min-height:650px;
  display:grid;
  grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr);
  background:rgba(255,255,255,.96);
  border:1px solid rgba(221,228,238,.92);
  border-radius:34px;
  overflow:hidden;
  box-shadow:var(--auth-shadow);
  isolation:isolate;
}

.auth-portal__visual{
  position:relative;
  min-width:0;
  padding:34px;
  display:flex;
  flex-direction:column;
  gap:22px;
  overflow:hidden;
  color:#fff;
  background:
    radial-gradient(circle at 82% 12%,rgba(255,255,255,.14),transparent 24%),
    linear-gradient(150deg,var(--auth-accent-2),var(--auth-accent) 62%,#1b2850 150%);
}

.auth-portal__visual:before,
.auth-portal__visual:after{
  content:"";
  position:absolute;
  pointer-events:none;
  border:1px solid rgba(255,255,255,.12);
  border-radius:50%;
}
.auth-portal__visual:before{width:410px;height:410px;left:-245px;bottom:-250px}
.auth-portal__visual:after{width:245px;height:245px;left:-132px;bottom:-144px}

.auth-portal__visual-top,
.auth-portal__photo,
.auth-portal__visual-copy{position:relative;z-index:1}

.auth-portal__visual-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.auth-portal__logo{
  width:72px;
  height:72px;
  display:grid;
  place-items:center;
  border-radius:21px;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(255,255,255,.45);
  box-shadow:0 14px 36px rgba(0,0,0,.17);
}
.auth-portal__logo img{width:100%;height:100%;object-fit:contain;display:block}

.auth-portal__pill{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.10);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  color:rgba(255,255,255,.92);
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}
.auth-portal__pill:before{content:"";width:7px;height:7px;border-radius:50%;background:#83f4c0;box-shadow:0 0 0 4px rgba(131,244,192,.13)}

.auth-portal__photo{
  width:min(100%,355px);
  aspect-ratio:1/1;
  align-self:center;
  border-radius:28px;
  overflow:hidden;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.24);
  box-shadow:0 26px 54px rgba(10,25,54,.30);
}
.auth-portal__photo:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 52%,rgba(3,18,38,.50));
  pointer-events:none;
}
.auth-portal__photo img{width:100%;height:100%;object-fit:cover;display:block}
.auth-portal__photo-caption{
  position:absolute;
  z-index:2;
  right:16px;
  left:16px;
  bottom:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:#fff;
  font-size:10px;
  font-weight:700;
}
.auth-portal__photo-caption strong{font-size:12px}
.auth-portal__photo-caption span{color:rgba(255,255,255,.76)}

.auth-portal__visual-copy{margin-top:auto}
.auth-portal__visual-copy>span{
  display:block;
  margin-bottom:7px;
  color:rgba(255,255,255,.69);
  font-size:11px;
  font-weight:700;
}
.auth-portal__visual-copy h2{
  margin:0;
  font-size:25px;
  line-height:1.55;
  letter-spacing:-.5px;
}
.auth-portal__visual-copy p{
  margin:8px 0 0;
  max-width:470px;
  color:rgba(255,255,255,.72);
  font-size:11px;
  line-height:2;
}

.auth-portal__panel{
  min-width:0;
  padding:58px 64px;
  display:grid;
  align-content:center;
  background:
    radial-gradient(circle at 85% 10%,var(--auth-accent-soft),transparent 26%),
    var(--auth-surface);
}
.auth-portal__panel-inner{width:min(100%,430px);margin:auto}

.auth-portal__kicker{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 11px;
  border-radius:999px;
  color:var(--auth-accent);
  background:var(--auth-accent-soft);
  font-size:11px;
  font-weight:900;
}
.auth-portal__panel h1{
  margin:15px 0 6px;
  color:var(--auth-ink);
  font-size:31px;
  line-height:1.45;
  letter-spacing:-.7px;
}
.auth-portal__lead{
  margin:0 0 27px;
  color:var(--auth-muted);
  font-size:12px;
  line-height:1.9;
}

.auth-portal__error{
  margin:0 0 17px;
  padding:11px 13px;
  border:1px solid #f2c9cd;
  border-radius:13px;
  color:#9f2934;
  background:#fff4f5;
  font-size:11px;
  line-height:1.7;
}

.auth-portal__form{display:grid;gap:16px}
.auth-portal__field{display:grid;gap:7px}
.auth-portal__field>span{
  color:#445268;
  font-size:11px;
  font-weight:800;
}
.auth-portal__field input{
  width:100%;
  height:54px;
  border:1px solid #dbe3ed;
  border-radius:15px;
  padding:0 15px;
  outline:none;
  color:var(--auth-ink);
  background:#f9fbfd;
  transition:border-color .18s,box-shadow .18s,background .18s,transform .18s;
}
.auth-portal__field input::placeholder{color:#a5afbd}
.auth-portal__field input:focus{
  background:#fff;
  border-color:color-mix(in srgb,var(--auth-accent) 60%,white);
  box-shadow:0 0 0 4px var(--auth-accent-soft);
}

.auth-portal__submit{
  width:100%;
  min-height:56px;
  margin-top:3px;
  border:0;
  border-radius:16px;
  cursor:pointer;
  color:#fff;
  background:linear-gradient(135deg,var(--auth-accent),var(--auth-accent-2));
  box-shadow:0 14px 30px color-mix(in srgb,var(--auth-accent) 25%,transparent);
  font:inherit;
  font-size:13px;
  font-weight:900;
  transition:transform .18s,box-shadow .18s,filter .18s;
}
.auth-portal__submit:hover{transform:translateY(-1px);filter:saturate(1.06);box-shadow:0 18px 34px color-mix(in srgb,var(--auth-accent) 30%,transparent)}
.auth-portal__submit:active{transform:translateY(0)}

.auth-portal__trust{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid var(--auth-line);
  display:flex;
  align-items:flex-start;
  gap:9px;
  color:#8490a1;
  font-size:10px;
  line-height:1.8;
}
.auth-portal__trust:before{
  content:"";
  width:8px;
  height:8px;
  flex:0 0 auto;
  margin-top:5px;
  border-radius:50%;
  background:#2bb77c;
  box-shadow:0 0 0 4px rgba(43,183,124,.11);
}

/* The Call Center keeps the same image but gets a different spatial identity. */
.auth-portal--callcenter .auth-portal__visual{order:2}
.auth-portal--callcenter .auth-portal__panel{order:1}
.auth-portal--callcenter .auth-portal__photo{border-radius:22px 42px 22px 42px}
.auth-portal--callcenter .auth-portal__pill:before{background:#9cecff;box-shadow:0 0 0 4px rgba(156,236,255,.13)}

/* Sales WebApp feels slightly warmer / more active. */
.auth-portal--sales .auth-portal__visual{background:
  radial-gradient(circle at 80% 12%,rgba(255,255,255,.14),transparent 24%),
  linear-gradient(150deg,#6d5dfc,#3156d3 62%,#1f285a 145%)}
.auth-portal--sales .auth-portal__photo{transform:rotate(-1deg)}
.auth-portal--sales .auth-portal__photo img{transform:scale(1.01)}

@media (max-width:920px){
  .auth-portal{padding:20px 16px}
  .auth-portal__frame{grid-template-columns:1fr;min-height:0;max-width:700px;border-radius:28px}
  .auth-portal__visual,.auth-portal--callcenter .auth-portal__visual{order:1;padding:24px;display:grid;grid-template-columns:170px 1fr;grid-template-areas:"top top" "photo copy";align-items:center;gap:18px}
  .auth-portal__panel,.auth-portal--callcenter .auth-portal__panel{order:2;padding:42px 40px}
  .auth-portal__visual-top{grid-area:top}
  .auth-portal__photo{grid-area:photo;width:170px;border-radius:22px!important;transform:none!important}
  .auth-portal__visual-copy{grid-area:copy;margin-top:0}
  .auth-portal__visual-copy h2{font-size:21px}
  .auth-portal__visual-copy p{font-size:10px}
}

@media (max-width:620px){
  .auth-portal{min-height:calc(100vh - 46px);padding:12px 10px 8px}
  .auth-portal__frame{border-radius:24px}
  .auth-portal__visual,.auth-portal--callcenter .auth-portal__visual{padding:18px;grid-template-columns:94px 1fr;gap:13px}
  .auth-portal__logo{width:54px;height:54px;border-radius:16px}
  .auth-portal__pill{min-height:30px;padding:0 9px;font-size:9px}
  .auth-portal__photo{width:94px;border-radius:18px!important}
  .auth-portal__photo-caption{display:none}
  .auth-portal__visual-copy>span{font-size:9px;margin-bottom:3px}
  .auth-portal__visual-copy h2{font-size:17px;line-height:1.55}
  .auth-portal__visual-copy p{display:none}
  .auth-portal__panel,.auth-portal--callcenter .auth-portal__panel{padding:30px 20px 28px}
  .auth-portal__panel h1{font-size:25px;margin-top:11px}
  .auth-portal__lead{font-size:11px;margin-bottom:22px}
  .auth-portal__field input{height:51px}
  .auth-portal__submit{min-height:53px}
  .auth-portal-page .app-credits,.auth-portal-page .app-footer{font-size:9px!important;padding-bottom:10px!important}
}

@media (max-width:390px){
  .auth-portal__visual,.auth-portal--callcenter .auth-portal__visual{grid-template-columns:76px 1fr;padding:15px}
  .auth-portal__photo{width:76px}
  .auth-portal__pill{display:none}
  .auth-portal__visual-top{justify-content:flex-start}
  .auth-portal__panel,.auth-portal--callcenter .auth-portal__panel{padding:26px 16px 24px}
}

@media (prefers-reduced-motion:reduce){
  .auth-portal__submit,.auth-portal__field input{transition:none!important}
}
