:root{
  --brand:#1895F9;
  --brandDark:#0876D8;
  --brandDeep:#061A33;
  --brandSoft:#EAF6FF;
  --brandSoft2:#DDF0FF;
  --text:#0B1424;
  --muted:#5C6B7F;
  --hint:#8492A6;
  --white:#FFFFFF;
  --card:#FFFFFF;
  --bg:#F2F8FF;
  --border:rgba(8, 53, 94, .12);
  --borderStrong:rgba(24, 149, 249, .26);
  --danger:#E5484D;
  --dangerSoft:#FFF0F0;
  --success:#12B981;
  --successSoft:#E9FBF3;
  --shadow:0 28px 80px rgba(5, 54, 105, .20);
  --radius:30px;
}

*{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  min-height:100%;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,.72), transparent 22%),
    radial-gradient(circle at 82% 7%, rgba(255,255,255,.24), transparent 20%),
    linear-gradient(180deg, var(--brand) 0%, var(--brandDark) 100%);
  background-attachment: fixed;
}

body{
  padding:13px;
  padding-bottom:calc(14px + env(safe-area-inset-bottom));
}

button,
input,
select{
  font-family:inherit;
}

.shell{
  width:100%;
  max-width:720px;
  margin:0 auto;
}

.card{
  width:100%;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.42);
  border-radius:var(--radius);
  background:var(--card);
  box-shadow:var(--shadow);
}

.hero{
  position:relative;
  padding:20px 18px 15px;
  color:var(--white);
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,0) 36%),
    linear-gradient(135deg, var(--brand) 0%, var(--brandDark) 100%);
}


.hero:before{
  content:"";
  position:absolute;
  right:-62px;
  top:18px;
  width:230px;
  height:150px;
  border-radius:999px;
  background:
    radial-gradient(circle at 26% 34%, rgba(255,255,255,.28) 0 3px, transparent 4px),
    radial-gradient(circle at 56% 22%, rgba(255,255,255,.18) 0 2px, transparent 3px),
    radial-gradient(circle at 74% 62%, rgba(255,255,255,.22) 0 3px, transparent 4px),
    radial-gradient(circle at 38% 72%, rgba(255,255,255,.14) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255,255,255,.16), rgba(255,255,255,0) 68%);
  pointer-events:none;
}



.brandRow{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.padreLogo{
  position:relative;
  display:inline-flex;
  align-items:flex-end;
  color:#fff;
  font-size:28px;
  line-height:.82;
  font-weight:950;
  letter-spacing:.035em;
  text-transform:uppercase;
  transform:scaleX(1.08);
  transform-origin:left center;
  text-shadow:0 14px 42px rgba(0, 54, 110, .24);
}

.logoE{
  position:relative;
  display:inline-block;
}



.heroText{
  position:relative;
  z-index:2;
  margin-top:18px;
}

.heroText h1{
  margin:0;
  max-width:520px;
  font-size:27px;
  line-height:1;
  letter-spacing:-.055em;
}

.heroText p{
  max-width:560px;
  margin:8px 0 0;
  color:rgba(255,255,255,.82);
  font-size:13px;
  line-height:1.36;
}

.formBlock{
  position:relative;
  background:#fff;
}

.progress{
  display:flex;
  align-items:center;
  gap:8px;
  padding:14px 18px 0;
}

.step{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--hint);
  white-space:nowrap;
}

.step span{
  width:12px;
  height:12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#E9F2FB;
}

.step p{
  margin:0;
  font-size:12px;
  font-weight:850;
}

.step.active{
  color:var(--brandDeep);
}

.step.active span{
  border-color:var(--brand);
  background:var(--brand);
  box-shadow:0 0 0 6px rgba(24,149,249,.14);
}

.step.done{
  color:var(--success);
}

.step.done span{
  border-color:var(--success);
  background:var(--success);
}

.line{
  flex:1;
  height:1px;
  background:var(--border);
}

.panel{
  padding:18px;
}

.mainPanel{
  padding-top:14px;
}

.sectionHead{
  margin-bottom:13px;
}

.sectionHead h2{
  margin:0;
  color:var(--text);
  font-size:22px;
  line-height:1.04;
  letter-spacing:-.045em;
}

.sectionHead p{
  margin:7px 0 0;
  color:var(--muted);
  font-size:14px;
  line-height:1.42;
}

.label{
  display:block;
  margin:14px 0 8px;
  color:var(--muted);
  font-size:13px;
  font-weight:850;
}

.phoneRow{
  display:flex;
  gap:8px;
  align-items:stretch;
}

.select,
.input{
  width:100%;
  min-height:51px;
  padding:14px 14px;
  border-radius:17px;
  border:1px solid var(--border);
  background:#F7FBFF;
  color:var(--text);
  font-size:15px;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.select{
  width:46%;
  min-width:165px;
  appearance:none;
  background:
    linear-gradient(45deg, transparent 50%, var(--brand) 50%) calc(100% - 18px) 23px/6px 6px no-repeat,
    linear-gradient(135deg, var(--brand) 50%, transparent 50%) calc(100% - 12px) 23px/6px 6px no-repeat,
    #F7FBFF;
  padding-right:34px;
}

.select:focus,
.input:focus,
.phoneInput:focus-within{
  border-color:var(--brand);
  box-shadow:0 0 0 5px rgba(24,149,249,.14);
  background:#fff;
}

.phoneInput{
  flex:1;
  min-width:0;
  display:flex;
  border-radius:17px;
  border:1px solid var(--border);
  background:#F7FBFF;
  overflow:hidden;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.dial{
  display:flex;
  align-items:center;
  padding:0 13px;
  border-right:1px solid var(--border);
  color:var(--brandDeep);
  font-weight:950;
  white-space:nowrap;
  background:var(--brandSoft);
}

.phoneInput .input{
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

.codeInput{
  text-align:center;
  letter-spacing:.22em;
  font-size:22px;
  font-weight:950;
}

.row{
  display:flex;
  gap:8px;
  margin-top:14px;
}

.btn{
  width:100%;
  min-height:53px;
  margin-top:14px;
  padding:14px 16px;
  border:0;
  border-radius:18px;
  font-size:15px;
  font-weight:950;
  cursor:pointer;
  transition:transform .12s ease, opacity .18s ease, filter .18s ease, background .18s ease;
}

.row .btn{
  margin-top:0;
}

.btn:active{
  transform:translateY(1px) scale(.99);
}

.btn:disabled{
  opacity:.55;
  cursor:not-allowed;
  transform:none;
}

.primary{
  position:relative;
  overflow:hidden;
  color:#fff;
  background:linear-gradient(135deg, var(--brand) 0%, var(--brandDark) 100%);
  box-shadow:0 18px 42px rgba(24,149,249,.32);
}


.secondary{
  color:var(--brandDeep);
  background:#F2F8FF;
  border:1px solid var(--border);
}

.hintText{
  margin:12px 0 0;
  color:var(--hint);
  font-size:12px;
  line-height:1.45;
}

.notice{
  margin:16px 20px 0;
  padding:13px 14px;
  border-radius:17px;
  border:1px solid var(--border);
  color:var(--muted);
  background:#F7FBFF;
  font-size:13px;
  line-height:1.42;
}

.notice.error{
  color:#8A1F24;
  border-color:rgba(229,72,77,.22);
  background:var(--dangerSoft);
}

.notice.ok{
  color:#087A4C;
  border-color:rgba(18,185,129,.24);
  background:var(--successSoft);
}

.success{
  text-align:center;
  padding-top:30px;
  padding-bottom:30px;
}

.successIcon{
  width:64px;
  height:64px;
  margin:0 auto 16px;
  border-radius:20px;
  background:linear-gradient(135deg, var(--brand), var(--brandDark));
  box-shadow:0 18px 44px rgba(24,149,249,.28);
  position:relative;
}


.successIcon:after{
  content:"";
  position:absolute;
  left:23px;
  top:18px;
  width:16px;
  height:27px;
  border:solid #fff;
  border-width:0 4px 4px 0;
  transform:rotate(45deg);
  border-radius:2px;
}

.successTitle{
  color:var(--text);
  font-size:23px;
  font-weight:950;
  letter-spacing:-.04em;
}

.successText{
  max-width:430px;
  margin:9px auto 0;
  color:var(--muted);
  line-height:1.45;
  font-size:14px;
}

.details{
  padding:0 18px 18px;
  background:#fff;
}





.detailGrid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:8px;
  margin-top:10px;
}

.detailItem{
  padding:13px;
  border:1px solid var(--border);
  border-radius:17px;
  background:#F8FBFF;
}

.detailItem span{
  display:block;
  margin-bottom:9px;
  color:var(--brand);
  font-size:11px;
  font-weight:950;
  letter-spacing:.08em;
}

.detailItem b{
  display:block;
  color:var(--text);
  font-size:12px;
  line-height:1.22;
  font-weight:950;
}

.detailItem p{
  margin:6px 0 0;
  color:var(--hint);
  font-size:11.5px;
  line-height:1.32;
}

.hidden{
  display:none !important;
}

@media (max-width:560px){
  body{
    padding:10px;
    padding-bottom:calc(10px + env(safe-area-inset-bottom));
  }

  .card{
    border-radius:26px;
  }

  .hero{
    padding:19px 15px 14px;
  }

  .heroText{
    margin-top:16px;
  }

  .heroText h1{
    font-size:25px;
  }

  .heroText p{
    font-size:13px;
  }

  .padreLogo{
    font-size:26px;
  }

  .progress{
    padding:13px 15px 0;
  }

  .panel{
    padding:15px;
  }

  .notice{
    margin-left:16px;
    margin-right:16px;
  }

  .phoneRow,
  .row{
    flex-direction:column;
  }

  .select{
    width:100%;
  }

  .details{
    padding:0 16px 16px;
  }

  .detailGrid{
    grid-template-columns:1fr;
  }

  .step p{
    font-size:11px;
  }
}


/* PADRE compact auth UI polish */
.hero{
  min-height:auto;
}

.brandRow{
  min-height:30px;
}

.heroText h1{
  max-width:430px;
}

.heroText p{
  max-width:510px;
}

.formBlock{
  margin-top:0;
}

.progress .line{
  opacity:.72;
}


.detailGrid{
  gap:8px;
}

.detailItem{
  min-height:auto;
}

.detailItem p{
  margin-top:5px;
}

@media (max-width:560px){
  .hero:before{
    opacity:.75;
  }

  .heroText h1{
    font-size:24px;
    letter-spacing:-.05em;
  }

  .heroText p{
    max-width:330px;
  }

  .sectionHead h2{
    font-size:21px;
  }

  .details{
    padding-bottom:14px;
  }

  .detailItem{
    padding:12px;
  }
}



.passwordWrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.passwordWrap .input {
  width: 100%;
}

.passwordInput {
  padding-right: 52px;
}

.passwordToggle {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  opacity: 0.78;
}

.passwordToggle:hover {
  opacity: 1;
}

.passwordToggle:active {
  transform: translateY(-50%) scale(0.96);
}


/* PADRE_AUTH_PASSWORD_EYE_VISIBLE_FIX */
.passwordField {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.passwordField .passwordInput,
.passwordField .input {
  width: 100%;
  padding-right: 58px !important;
}

.passwordToggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  min-width: 40px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  opacity: 1 !important;
  visibility: visible !important;
  -webkit-tap-highlight-color: transparent;
}

.passwordToggle:active {
  transform: translateY(-50%) scale(0.96);
}
/* /PADRE_AUTH_PASSWORD_EYE_VISIBLE_FIX */

/* PADRE_AUTH_WEBAPP_HOTFIX_BEGIN */
html,
body {
  width: 100%;
  min-height: 100%;
  height: 100%;
}

body.padre-webapp-expanded {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

body.padre-webapp-expanded main,
body.padre-webapp-expanded .app,
body.padre-webapp-expanded .page,
body.padre-webapp-expanded .shell {
  min-height: var(--tg-viewport-stable-height, 100dvh);
}

.passwordField,
.passwordWrap,
.passwordInputWrap {
  position: relative;
}

.passwordField input,
.passwordWrap input,
.passwordInputWrap input,
#password {
  padding-right: 54px;
}

#passwordToggle,
.passwordToggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: inherit;
  cursor: pointer;
  z-index: 5;
  opacity: 1;
  pointer-events: auto;
}

#passwordToggle.active,
.passwordToggle.active {
  background: rgba(255, 255, 255, 0.18);
}

button[disabled] {
  cursor: wait;
}

.notice.info {
  display: block;
}
/* PADRE_AUTH_WEBAPP_HOTFIX_END */

/* PADRE auth WebApp stability hotfix */
html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overscroll-behavior: none;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom);
}

.hidden {
  display: none !important;
}

.passwordWrap {
  position: relative;
  width: 100%;
}

.passwordWrap .input,
.passwordWrap input {
  width: 100%;
  padding-right: 52px;
  box-sizing: border-box;
}

.passwordToggle {
  position: absolute;
  right: 10px;
  top: 50%;
  z-index: 10;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font-size: 19px;
  line-height: 38px;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

button {
  touch-action: manipulation;
}

button:disabled {
  opacity: 0.65;
  cursor: progress;
}

/* PADRE critical WebApp safety layer */
html,
body {
  min-height: 100%;
  min-height: 100dvh;
  margin: 0;
}

.hidden {
  display: none !important;
}

button,
input,
select {
  font: inherit;
}

.passwordField {
  position: relative;
  display: flex;
  align-items: center;
}

.passwordField .input {
  width: 100%;
  padding-right: 48px;
}

.passwordToggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.78;
  z-index: 2;
}

/* PADRE password visibility button: clean SVG icon, no emoji */
.passwordToggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(226, 232, 240, 0.78);
  line-height: 1;
  font-size: 0;
}

.passwordToggle:hover {
  color: rgba(255, 255, 255, 0.95);
}

.passwordToggle .passwordIcon {
  width: 22px;
  height: 22px;
  display: block;
  pointer-events: none;
}

.passwordToggle.active {
  color: rgba(255, 255, 255, 0.9);
}


/* PADRE password visibility SVG icon clean final */
.passwordToggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(226, 232, 240, 0.78);
  line-height: 1;
  font-size: 0;
}

.passwordToggle:hover {
  color: rgba(255, 255, 255, 0.95);
}

.passwordToggle .passwordIcon {
  width: 22px;
  height: 22px;
  display: block;
  pointer-events: none;
}

.passwordToggle.active {
  color: rgba(255, 255, 255, 0.9);
}
