/* ============================================================
   theme.css — shared eco/teal design system for the whole site
   (onboarding, login/signup, welcome, scope selection, calculator)
   ============================================================ */
:root{
  --teal:#245A2B;
  --teal-dark:#1C4B22;
  --teal-light:#EAF4E7;
  --mint-bg:#7DD577;          /* outer page background, like the reference frame */
  --card-bg:#ACE1AF;
  --heading:#111111;          /* deep eucalyptus green for big headings */
  --text:#111111;
  --text-secondary:#3E5A3A;
  --text-muted:#6B8067;
  --border:#CFE2CA;
  --dot-inactive:#D5E7D0;
  --leaf:#79A971;
  --leaf-dark:#4E714A;
  --sky:#CDEEF5;
  --sun:#F5D949;
  --red:#D6433D;
  --red-dark:#B4322D;
  --radius-lg:28px;
  --radius-md:16px;
  --radius-sm:10px;
  --shadow:0 10px 30px rgba(51,66,47,.12);
}
*{box-sizing:border-box;}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--text);
  background:#7DD577;
}
a{color:inherit;}

/* Full-page centered "phone-card" shell used by onboarding/login/welcome */
.shell{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px 16px;
}
.panel{
  background:var(--card-bg);
  width:100%;
  max-width:420px;
  border-radius:var(--radius-lg);
  box-shadow:0 10px 28px rgba(36,90,43,.18);
  padding:28px 30px 34px;
  position:relative;
  min-height:640px;
  display:flex;
  flex-direction:column;
}

.skip-link{
  position:absolute; top:24px; right:26px;
  font-size:15px; font-weight:600; color:var(--teal);
  text-decoration:none; cursor:pointer; background:none; border:none;
}

.illustration{
  width:100%; height:250px;
  display:flex; align-items:center; justify-content:center;
  margin:38px 0 8px;
}
.illustration svg{width:100%; max-width:220px; height:auto;}
.welcome-illustration{
  margin-top:18px;
  height:300px;
  overflow:visible;
}
.welcome-illustration img{
  width:100%;
  max-width:300px;
  height:auto;
  max-height:270px;
  object-fit:contain;
  display:block;
  margin:0 auto;
}

.panel h1.title{
  font-size:26px; font-weight:800; color:var(--heading);
  text-align:center; margin:18px 0 10px;
}
.panel p.desc{
  font-size:15.5px; line-height:1.6; color:var(--text-secondary);
  text-align:center; margin:0 0 auto;
}

.dots{display:flex; justify-content:center; gap:7px; margin:26px 0 22px;}
.dots span{width:7px; height:7px; border-radius:50%; background:var(--dot-inactive); transition:all .2s ease;}
.dots span.active{background:var(--teal); width:20px; border-radius:5px;}

.btn-next{
  width:56px; height:56px; border-radius:50%; border:none; background:var(--teal);
  color:#fff; font-size:20px; cursor:pointer; display:flex; align-items:center; justify-content:center;
  margin:0 auto; box-shadow:0 6px 16px rgba(30,158,140,.35); transition:background .15s ease, transform .1s ease;
}
.btn-next:hover{background:var(--teal-dark);}
.btn-next:active{transform:scale(.96);}

.btn-wide{
  width:100%; padding:16px; border:none; border-radius:14px; background:var(--teal);
  color:#fff; font-weight:700; font-size:16px; cursor:pointer; transition:background .15s ease;
}
.btn-wide:hover{background:var(--teal-dark);}
.btn-wide:disabled{background:#AFD6CF; cursor:not-allowed;}

.btn-outline{
  width:100%; padding:14px; border:1.5px solid var(--teal); border-radius:14px; background:transparent;
  color:var(--teal); font-weight:700; font-size:15px; cursor:pointer;
}

/* form fields, shared by login/signup */
label{display:block; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; color:var(--text-muted); margin-bottom:6px;}
input, select{
  width:100%; padding:13px 14px; border:1.5px solid var(--border); border-radius:12px;
  font-size:15px; margin-bottom:16px; background:#F7FBF4; font-family:inherit; color:var(--text);
}
input:focus, select:focus{outline:none; border-color:var(--teal); background:#fff;}

.error-box{background:#FBE7E6; color:var(--red-dark); font-size:13.5px; padding:10px 12px; border-radius:10px; margin-bottom:16px;}
.hint{font-size:12.5px; color:var(--text-muted); text-align:center; margin-top:16px;}
.hint a{color:var(--teal); font-weight:700; text-decoration:none;}

.brand-row{display:flex; align-items:center; justify-content:center; gap:8px; margin-bottom:6px;}
.brand-row .leaf-badge{width:30px; height:30px;}
.brand-row span{font-weight:800; font-size:14px; color:var(--heading); letter-spacing:.02em;}


.brand-overlay{
  position:fixed; top:28px; left:28px; z-index:20;
  display:flex; align-items:flex-start; gap:12px; color:#111;
  pointer-events:none;
}
.brand-icon{width:38px; height:38px; flex:0 0 38px;}
.brand-copy{display:flex; flex-direction:column; line-height:1.15; padding-top:1px;}
.brand-title{font-size:20px; font-weight:700; letter-spacing:.1px; white-space:nowrap;}
.brand-subtitle{margin-top:5px; font-size:14px; font-weight:500; color:#245A2B; white-space:nowrap;}
@media(max-width:700px){
  .brand-overlay{top:18px; left:18px; gap:9px;}
  .brand-icon{width:32px; height:32px; flex-basis:32px;}
  .brand-title{font-size:16px;}
  .brand-subtitle{font-size:12px; margin-top:3px;}
}
@media(max-width:380px){
  .brand-overlay{top:14px; left:14px; gap:7px;}
  .brand-icon{width:26px; height:26px; flex-basis:26px;}
  .brand-title{font-size:13px; white-space:normal; max-width:180px; line-height:1.2;}
  .brand-subtitle{font-size:10.5px;}
  .shell{padding:24px 12px;}
  .panel{padding:24px 18px 28px; min-height:auto;}
}
.auth-brand{display:flex; align-items:flex-start; justify-content:center; gap:10px; margin-bottom:20px; color:#111;}
.auth-brand .brand-icon{width:34px; height:34px; flex-basis:34px;}
.auth-brand .brand-title{font-size:17px;}
.auth-brand .brand-subtitle{font-size:12px; margin-top:4px;}

.highlight-red{color:var(--red);}
