/* AREATO V0.34 auth/onboarding coordinate grid.
   Purpose: stable x/y alignment across languages without HTML layout tables. */

:root{
  --navy:#062d59;
  --blue:#0878e8;
  --gold:#f2aa16;
  --text:#10233b;
  --muted:#66788d;
  --line:#e5edf5;
  --bg:#f5f9fd;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:Inter,Arial,Helvetica,sans-serif;
  color:var(--text);
  background:var(--bg);
}

.areato-auth-main{
  min-height:calc(100vh - 82px);
  display:grid;
  grid-template-columns:1fr;
  justify-items:center;
  align-items:start;
  padding:clamp(56px,9vh,105px) 20px 78px;
}

.areato-auth-card{
  width:min(980px,calc(100vw - 40px));
  display:grid;
  grid-template-columns:390px 590px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 24px 70px rgba(6,45,89,.10);
}

.areato-auth-side{
  background:linear-gradient(145deg,#073b72,#041d39);
  color:#fff;
  padding:48px;
}

.areato-auth-eyebrow{
  min-height:16px;
  color:#ffd666;
  letter-spacing:.14em;
  font-size:11px;
  font-weight:800;
  line-height:16px;
}

.areato-auth-side h1{
  min-height:82px;
  display:flex;
  align-items:flex-start;
  margin:18px 0 10px;
  font-size:38px;
  line-height:1.08;
}

.areato-auth-side p{
  min-height:78px;
  margin:0;
  color:#c6d8eb;
  line-height:1.6;
}

.areato-auth-panel{
  padding:44px;
}

.areato-auth-panel h2{
  min-height:34px;
  margin:0 0 8px;
  color:var(--navy);
  font-size:28px;
  line-height:34px;
}

.areato-auth-muted{
  min-height:44px;
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}

/* Table-like semantics without using a layout table:
   column 1 = label coordinate, column 2 = control coordinate. */
.areato-auth-form{
  display:grid;
  grid-template-columns:132px minmax(0,1fr);
  grid-auto-rows:minmax(44px,auto);
  column-gap:18px;
  row-gap:14px;
  align-items:center;
  margin-top:20px;
}

.areato-auth-form label{
  width:132px;
  margin:0;
  color:var(--navy);
  font-size:12px;
  font-weight:700;
  line-height:1.3;
}

.areato-auth-form input,
.areato-auth-form select{
  width:100%;
  height:44px;
  min-width:0;
  margin:0;
  padding:0 14px;
  border:1px solid #cfdeec;
  border-radius:10px;
  background:#fff;
  font:inherit;
}

.areato-auth-form button,
.areato-auth-form .primary{
  grid-column:2;
  width:100%;
  min-height:46px;
  margin:2px 0 0;
  display:block;
  border:0;
  border-radius:11px;
  background:var(--blue);
  color:#fff;
  font-weight:800;
  text-align:center;
  text-decoration:none;
  cursor:pointer;
}

.areato-auth-secondary{
  display:block;
  width:calc(100% - 150px);
  margin:14px 0 0 150px;
  color:var(--blue);
  text-decoration:none;
  text-align:center;
  font-size:13px;
  line-height:1.4;
}

.areato-auth-note{
  width:calc(100% - 150px);
  margin:18px 0 0 150px;
  padding:12px;
  border-radius:10px;
  background:#f1f7fd;
  color:#587089;
  font-size:12px;
  line-height:1.45;
}

/* Registration choice grid: fixed equal tracks so translated text cannot
   move one choice left/right relative to the other. */
.areato-auth-role-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:24px;
}

.areato-auth-role{
  min-width:0;
  min-height:142px;
  display:grid;
  grid-template-rows:38px 1fr;
  align-content:start;
  padding:20px;
  border:1px solid var(--line);
  border-radius:14px;
  color:var(--text);
  text-decoration:none;
}

.areato-auth-role:hover{border-color:var(--blue)}

.areato-auth-role b{
  display:block;
  color:var(--navy);
  line-height:1.35;
}

.areato-auth-role span{
  display:block;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}

.areato-auth-stepbar{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:7px;
  margin:18px 0 24px;
}

.areato-auth-stepbar i{
  height:4px;
  background:#dbe7f2;
  border-radius:5px;
}

.areato-auth-stepbar i.on{background:var(--blue)}

/* Intermediate widths: preserve exact label/control columns, allow card to scale. */
@media(max-width:1040px){
  .areato-auth-card{
    width:min(920px,calc(100vw - 40px));
    grid-template-columns:360px minmax(0,1fr);
  }
  .areato-auth-side{padding:42px}
}

/* Mobile/tablet: semantic single-column fallback. */
@media(max-width:760px){
  .areato-auth-main{padding:34px 16px 56px}

  .areato-auth-card{
    width:100%;
    grid-template-columns:1fr;
  }

  .areato-auth-side{padding:30px}

  .areato-auth-side h1,
  .areato-auth-side p,
  .areato-auth-muted{
    min-height:0;
  }

  .areato-auth-panel{padding:30px}

  .areato-auth-form{
    grid-template-columns:1fr;
    grid-auto-rows:auto;
    row-gap:8px;
  }

  .areato-auth-form label{
    width:auto;
    margin-top:8px;
  }

  .areato-auth-form button,
  .areato-auth-form .primary{
    grid-column:1;
    margin-top:12px;
  }

  .areato-auth-secondary,
  .areato-auth-note{
    width:100%;
    margin-left:0;
  }

  .areato-auth-role-grid{grid-template-columns:1fr}
}
