/* Kirish (login) — sahifa stillari. */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:'Inter',-apple-system,'Segoe UI',sans-serif;
  -webkit-font-smoothing:antialiased;color:#1f2933;
  background:#f4f6f9;
  min-height:100vh;
}

/* Nature photo background — single 32 KB JPEG (800×540 @ q=40), tinted with
   a soft warm overlay so the form card stays legible. No external requests:
   image is served from our own /assets path. */
.al-page{
  min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:80px 20px 96px;position:relative;overflow:hidden;
  background:
    linear-gradient(135deg,rgba(255,248,225,.55) 0%,rgba(244,246,249,.78) 100%),
    url('/assets/img/login-bg.jpg') center/cover no-repeat fixed;
}
.al-page::before{
  content:'';position:absolute;inset:0;pointer-events:none;z-index:0;
  background:
    radial-gradient(circle at 12% 8%, rgba(255,200,6,.20) 0, transparent 38%),
    radial-gradient(circle at 88% 92%, rgba(252,63,29,.12) 0, transparent 42%);
}

/* Logo top left — premium (only desktop, hidden on small) */
.al-logo{
  position:absolute;top:22px;left:32px;z-index:2;
  display:inline-flex;align-items:center;gap:12px;
  text-decoration:none;color:#1f2933;
}
@media (max-width:980px){.al-logo{display:none}}
.al-ymark{
  width:38px;height:38px;border-radius:10px;
  background:linear-gradient(135deg,#FC3F1D 0%,#E22A0E 60%,#C41A00 100%);
  display:grid;place-items:center;color:#fff;
  font-weight:800;font-size:22px;letter-spacing:-.02em;
  box-shadow:
    0 1px 0 rgba(255,255,255,.18) inset,
    0 -2px 0 rgba(0,0,0,.12) inset,
    0 6px 18px -4px rgba(252,63,29,.40),
    0 1px 2px rgba(0,0,0,.08);
  position:relative;
}
.al-ymark::after{
  content:'';position:absolute;top:1px;left:1px;right:1px;height:50%;border-radius:9px 9px 0 0;
  background:linear-gradient(180deg,rgba(255,255,255,.18) 0%,rgba(255,255,255,0) 100%);
  pointer-events:none;
}
.al-logo .name{
  display:flex;flex-direction:column;line-height:1.15;white-space:nowrap;
}
.al-logo .name .brand{
  font-family:'Inter',sans-serif;font-weight:700;font-size:17px;
  letter-spacing:-.014em;color:#0a0e14;
}
.al-logo .name .sub{
  font-size:10.5px;font-weight:600;color:#7b8794;
  letter-spacing:.04em;text-transform:uppercase;margin-top:3px;
  white-space:nowrap;
}
.al-logo .name .sub b{font-weight:700;color:#0a0e14}

/* Card — Liquid Glass kartochka, foto fonidan oqib ko'rinadi */
.al-card{
  position:relative;z-index:1;
  width:100%;max-width:460px;
  background:rgba(255,255,255,.78);
  -webkit-backdrop-filter:blur(28px) saturate(180%);
  backdrop-filter:blur(28px) saturate(180%);
  border-radius:22px;
  padding:42px 40px 34px;
  border:1px solid rgba(255,255,255,.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    0 1px 2px rgba(31,41,51,.06),
    0 8px 24px -8px rgba(31,41,51,.14),
    0 24px 48px -16px rgba(31,41,51,.18);
  animation:al-rise .4s cubic-bezier(.16,1,.3,1) both;
}
@keyframes al-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (max-width:480px){.al-card{padding:30px 22px;border-radius:14px}}

/* Subtle yellow accent stripe at top of card */
.al-card::before{
  content:'';position:absolute;top:0;left:50%;transform:translateX(-50%);
  width:48px;height:3px;background:#FFC806;border-radius:0 0 4px 4px;
}

/* Tabs olib tashlandi — kartochka pastida kichik switch */
.al-tabs{display:none}

/* Pastdagi kichik switch link */
.al-switch{
  margin-top:22px;padding-top:18px;
  border-top:1px solid #eef0f3;
  text-align:center;font-size:13px;color:#7b8794;
}
.al-switch a{
  color:#1f2933;font-weight:600;text-decoration:none;
  transition:color .15s;cursor:pointer;
}
.al-switch a:hover{color:#FFC806}

/* Pane */
.al-pane{display:none;animation:al-fade .25s ease-out both}
.al-pane.active{display:block}
@keyframes al-fade{from{opacity:0}to{opacity:1}}

.al-hd{margin-bottom:24px;text-align:center}
.al-hd h2{
  font-size:24px;font-weight:700;line-height:1.2;letter-spacing:-.022em;color:#0a0e14;
}
.al-hd p{font-size:13.5px;line-height:1.55;color:#7b8794;margin-top:8px}

/* Alert */
.al-alert{
  margin-bottom:16px;padding:11px 13px;border-radius:10px;
  background:#fef2f2;border:1px solid #fecaca;color:#9b2222;
  font-size:13px;line-height:1.45;display:flex;align-items:flex-start;gap:9px;
}
.al-alert.ok{background:#f0fdf4;border-color:#bbf7d0;color:#166534}
.al-alert svg{width:16px;height:16px;flex:none;margin-top:1px}

/* Form */
.al-frm{display:flex;flex-direction:column;gap:14px}
.<?= $c('row2') ?>{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width:480px){.<?= $c('row2') ?>{grid-template-columns:1fr}}

.al-fld{position:relative}
.al-fld > label.al-lbl{
  display:block;font-size:12.5px;font-weight:600;color:#52606d;
  margin-bottom:7px;letter-spacing:.005em;
}
.al-fld .ic{
  position:absolute;left:14px;top:35px;color:#9aa5b1;
  pointer-events:none;transition:color .15s;
}
.al-fld .ic svg{width:18px;height:18px;display:block}
.al-fld input:focus ~ .ic{color:#1f2933}
.al-fld input{
  width:100%;height:48px;padding:0 14px 0 44px;
  border:1px solid #d8dee5;border-radius:11px;
  font-size:14.5px;font-family:inherit;color:#0a0e14;background:#fff;outline:none;
  transition:border-color .15s,box-shadow .15s,background .15s;
}
.al-fld input::placeholder{color:#aab1ba}
.al-fld input:hover{border-color:#9aa5b1;background:#fbfbfc}
.al-fld input:focus{border-color:#1f2933;background:#fff;box-shadow:0 0 0 4px rgba(31,41,51,.06)}
/* When input has a password toggle, leave room on the right */
.al-fld.has-tog input{padding-right:78px}

.al-fld input:-webkit-autofill,
.al-fld input:-webkit-autofill:hover,
.al-fld input:-webkit-autofill:focus{
  -webkit-text-fill-color:#1f2933;
  -webkit-box-shadow:0 0 0 1000px #fff inset;
  transition:background-color 9999s ease-in-out 0s;
}

.al-fld .pwdtog{
  position:absolute;right:6px;top:31px;
  background:none;border:0;padding:8px 11px;
  font-size:10.5px;font-weight:700;letter-spacing:.06em;color:#7b8794;
  cursor:pointer;border-radius:7px;transition:all .15s;font-family:inherit;
}
.al-fld .pwdtog:hover{color:#1f2933;background:#f4f6f9}

.al-forgot{text-align:right;margin:-4px 0 2px}
.al-forgot a{
  font-size:12.5px;color:#52606d;font-weight:500;text-decoration:none;
  transition:color .15s;
}
.al-forgot a:hover{color:#1f2933}

/* Sign checkboxes (replaces single agree) */
.al-signs{display:flex;flex-direction:column;gap:8px;margin-top:4px}
.al-signrow{
  display:flex;align-items:center;gap:12px;width:100%;
  padding:11px 13px;background:#fafbfc;border:1px solid #eef0f3;border-radius:10px;
  font-size:13px;color:#1f2933;cursor:pointer;text-align:left;font-family:inherit;
  transition:background .12s,border-color .12s,box-shadow .12s;
}
.al-signrow:hover{background:#fff;border-color:#cbd2d9;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.al-signrow.signed{background:#f0fdf4;border-color:#86efac}
.al-signrow .chk{
  flex:none;width:22px;height:22px;border-radius:6px;border:2px solid #cbd2d9;background:#fff;
  display:grid;place-items:center;transition:all .15s;
}
.al-signrow.signed .chk{background:#22c55e;border-color:#22c55e}
.al-signrow .chk svg{width:13px;height:13px;color:#fff;opacity:0;transform:scale(.6);transition:all .2s}
.al-signrow.signed .chk svg{opacity:1;transform:scale(1)}
.al-signrow .nm{flex:1;font-weight:600;color:#1f2933;letter-spacing:-.005em}
.al-signrow .st{flex:none;font-size:11px;font-weight:600;color:#9aa5b1;letter-spacing:.04em;text-transform:uppercase}
.al-signrow.signed .st{color:#136734}
.al-signrow .arr{flex:none;width:14px;height:14px;color:#9aa5b1;transition:transform .15s,color .15s}
.al-signrow:hover .arr{color:#1f2933;transform:translateX(2px)}
.al-signrow.signed .arr{display:none}

/* Modal — contract signing */
.al-mdl{
  position:fixed;inset:0;z-index:100;display:none;align-items:center;justify-content:center;
  background:rgba(10,14,20,.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  padding:24px;animation:al-mfade .25s ease-out both;
}
.al-mdl.open{display:flex}
@keyframes al-mfade{from{opacity:0}to{opacity:1}}
.al-mdc{
  width:100%;max-width:780px;max-height:calc(100vh - 48px);
  background:#fff;border-radius:18px;display:flex;flex-direction:column;
  box-shadow:0 24px 80px -20px rgba(10,14,20,.4),0 8px 24px -8px rgba(10,14,20,.12);
  animation:al-mrise .35s cubic-bezier(.16,1,.3,1) both;overflow:hidden;
}
@keyframes al-mrise{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}

.al-mhead{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:18px 24px;border-bottom:1px solid #eef0f3;flex:none;
  background:linear-gradient(180deg,#fff 0%,#fafbfc 100%);
}
.al-mhead .ttx{flex:1;min-width:0}
.al-mhead .lbl{font-size:10.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#7b8794;margin-bottom:3px}
.al-mhead h3{font-size:18px;font-weight:700;letter-spacing:-.015em;color:#0a0e14;line-height:1.25}
.al-mhead .ver{font-size:11px;color:#9aa5b1;margin-top:2px;font-weight:500}
.al-mclose{
  flex:none;width:34px;height:34px;border:0;border-radius:8px;background:#f4f6f9;color:#52606d;
  cursor:pointer;display:grid;place-items:center;transition:background .12s,color .12s;
}
.al-mclose:hover{background:#e7ecf0;color:#1f2933}
.al-mclose svg{width:16px;height:16px}

.al-mbody{
  flex:1;overflow-y:auto;padding:24px 28px;background:#fff;
  font-size:13.5px;line-height:1.7;color:#3e4c59;
}
.al-mbody::-webkit-scrollbar{width:8px}
.al-mbody::-webkit-scrollbar-thumb{background:#d8dee5;border-radius:4px}
.al-mbody section + section{margin-top:22px;padding-top:22px;border-top:1px solid #f1f3f5}
.al-mbody h4{display:flex;align-items:baseline;gap:10px;font-size:15px;font-weight:700;color:#0a0e14;margin-bottom:8px;letter-spacing:-.01em}
.al-mbody h4 .n{flex:none;font-size:11px;font-weight:700;background:#FFC806;color:#1f2933;padding:3px 7px;border-radius:5px;line-height:1}
.al-mbody p{font-size:13px;line-height:1.7;margin-bottom:8px;color:#3e4c59}
.al-mbody ul{margin:6px 0 10px 20px}
.al-mbody li{font-size:13px;line-height:1.65;margin-bottom:3px;padding-left:2px;color:#3e4c59}
.al-mbody li::marker{color:#FFC806}

.al-mreadprog{
  position:sticky;top:0;height:3px;background:#eef0f3;margin:-24px -28px 16px;z-index:1;
}
.al-mreadprog .fil{height:100%;background:linear-gradient(90deg,#FFC806,#f5b800);width:0;transition:width .15s}

.al-mfoot{
  flex:none;padding:18px 24px;border-top:1px solid #eef0f3;background:#fafbfc;
}
.al-mfoot .gate{
  display:flex;align-items:center;gap:10px;padding:11px 13px;
  background:#fff;border:1px dashed #cbd2d9;border-radius:9px;font-size:12px;color:#52606d;
  margin-bottom:14px;line-height:1.5;
}
.al-mfoot .gate svg{flex:none;width:15px;height:15px;color:#9aa5b1}
.al-mfoot .gate.ready{background:#f0fdf4;border-color:#86efac;color:#136734;border-style:solid}
.al-mfoot .gate.ready svg{color:#22c55e}

/* Party-info block at the top of every doc body */
.al-mparty{
  margin-bottom:22px;padding:16px 18px;background:#fffbe6;border:1px solid #f6e58d;border-radius:10px;
}
.al-mparty .ttl{font-size:10.5px;font-weight:700;color:#876c00;letter-spacing:.08em;text-transform:uppercase;margin-bottom:10px}
.al-mparty .grid{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;font-size:12.5px}
@media (max-width:520px){.al-mparty .grid{grid-template-columns:1fr}}
.al-mparty .grid .k{color:#7a5c00;font-weight:500}
.al-mparty .grid .v{color:#1f2933;font-weight:700;letter-spacing:-.005em}
.al-mparty .grid .v .empty{color:#aab1ba;font-style:italic;font-weight:500}

/* Closing acceptance line at the bottom of every doc body */
.al-macc{
  margin-top:28px;padding:16px 18px;background:#0a0e14;color:#fff;border-radius:10px;
  font-size:13px;line-height:1.6;
}
.al-macc b{color:#FFC806;font-weight:700}

/* Signature canvas */
.al-mcanvbox{
  border:1px solid #d8dee5;border-radius:10px;background:#fff;
  position:relative;overflow:hidden;transition:border-color .12s,box-shadow .12s;
}
.al-mcanvbox.has-ink{border-color:#22c55e;box-shadow:0 0 0 2px rgba(34,197,94,.12)}
.al-mcanvbox canvas{display:block;width:100%;height:140px;cursor:crosshair;touch-action:none}
.al-mcanvph{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:8px;
  pointer-events:none;color:#aab1ba;font-size:13px;font-weight:500;
  background:repeating-linear-gradient(45deg,transparent,transparent 18px,#fafbfc 18px,#fafbfc 19px);
}
.al-mcanvph svg{width:16px;height:16px}
.al-mcanvbox.has-ink .al-mcanvph{display:none}

.al-msigwrap{margin-bottom:12px}
.al-msigwrap .lab{
  display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;
}
.al-msigwrap .lab label{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#7b8794}
.al-msigwrap .lab .who{font-size:11.5px;color:#52606d;font-weight:600}
.al-msigwrap .lab .who b{color:#0a0e14}
.al-msigwrap .clr{
  font-size:11px;font-weight:600;color:#9b2519;background:none;border:0;cursor:pointer;
  padding:4px 8px;border-radius:6px;transition:background .12s;
}
.al-msigwrap .clr:hover{background:#fef2f2}
.al-msigwrap .clr svg{width:11px;height:11px;vertical-align:-1px;margin-right:3px}

.al-mform{display:flex;justify-content:flex-end;gap:10px}
.al-mbtn{
  flex:none;height:44px;padding:0 22px;border:0;border-radius:10px;cursor:pointer;
  background:#1f2933;color:#fff;font-family:inherit;font-size:13.5px;font-weight:700;letter-spacing:-.005em;
  display:inline-flex;align-items:center;gap:7px;transition:background .12s,opacity .12s;
}
.al-mbtn:hover{background:#0a0e14}
.al-mbtn[disabled]{opacity:.4;cursor:not-allowed;background:#7b8794}
.al-mbtn svg{width:14px;height:14px}

@media (max-width:520px){
  .al-mdl{padding:12px}
  .al-mdc{max-height:calc(100vh - 24px);border-radius:14px}
  .al-mhead{padding:14px 18px}
  .al-mhead h3{font-size:16px}
  .al-mbody{padding:18px}
  .al-mfoot{padding:14px 18px}
  .al-mform{flex-direction:column;align-items:stretch;gap:10px}
  .al-mbtn{justify-content:center;height:46px}
}


/* CTA — Yandex sariq, refined */
.al-cta{
  width:100%;height:50px;border:0;border-radius:11px;cursor:pointer;
  background:linear-gradient(180deg,#FFC806 0%,#FFB800 100%);color:#1f2933;
  font-family:inherit;
  font-size:14.5px;font-weight:700;letter-spacing:-.005em;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  margin-top:14px;position:relative;overflow:hidden;
  transition:transform .12s,box-shadow .15s,filter .15s;
  box-shadow:
    0 1px 0 rgba(0,0,0,.05) inset,
    0 1px 0 rgba(255,255,255,.4) inset,
    0 1px 2px rgba(31,41,51,.06),
    0 6px 16px -6px rgba(255,200,6,.55);
}
.al-cta:hover{filter:brightness(1.03);box-shadow:0 1px 0 rgba(0,0,0,.05) inset,0 1px 0 rgba(255,255,255,.4) inset,0 1px 2px rgba(31,41,51,.06),0 10px 22px -6px rgba(255,200,6,.65)}
.al-cta:active{transform:translateY(1px)}
.al-cta[disabled]{opacity:.6;cursor:not-allowed}
.al-cta .arr{transition:transform .2s}
.al-cta:hover .arr{transform:translateX(3px)}
.al-cta .spin{display:none;width:16px;height:16px;border:2.5px solid rgba(31,41,51,.2);border-top-color:#1f2933;border-radius:50%;animation:al-rot .7s linear infinite}
.al-cta.loading .lbl,.al-cta.loading .arr{display:none}
.al-cta.loading .spin{display:inline-block}
@keyframes al-rot{to{transform:rotate(360deg)}}

/* Footer — fixed at bottom of viewport */
.al-foot{
  position:fixed;left:0;right:0;bottom:0;z-index:3;
  padding:14px 16px 18px;
  font-size:12.5px;color:#7b8794;text-align:center;
  background:linear-gradient(180deg,rgba(244,246,249,0) 0%,rgba(244,246,249,.85) 50%,#f4f6f9 100%);
  pointer-events:none;
}
.al-foot > *{pointer-events:auto}
.al-foot a{color:#52606d;text-decoration:none;margin:0 4px;transition:color .15s}
.al-foot a:hover{color:#1f2933}
.al-foot .row{margin-top:4px}

.al-hp{position:absolute;left:-9999px;top:-9999px;height:0;width:0;opacity:0;tabindex:-1;pointer-events:none}

/* Divider with text */
.al-div{position:relative;text-align:center;margin:18px 0 14px;font-size:11.5px;font-weight:600;color:#9aa5b1;letter-spacing:.06em;text-transform:uppercase}
.al-div::before,.al-div::after{content:'';position:absolute;top:50%;width:calc(50% - 22px);height:1px;background:#e7ecf0}
.al-div::before{left:0}.al-div::after{right:0}

/* Yandex OAuth button */
.al-yox{
  display:flex;align-items:center;justify-content:center;gap:10px;
  width:100%;height:46px;border:1px solid #e7ecf0;border-radius:11px;
  background:#fff;color:#0a0e14;font:inherit;font-size:13.5px;font-weight:600;
  cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s;
  text-decoration:none;
}
.al-yox:hover{border-color:#0a0e14;background:#fbfbfc;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.al-yox .ymk{
  width:22px;height:22px;border-radius:6px;background:#FC3F1D;color:#fff;
  display:grid;place-items:center;font-weight:800;font-size:13px;
}
