/* Login styles (aislados) */
:root{
  --bg1:#e8e2d6;
  --bg2:#f3f5f7;
  --card:rgba(255,255,255,.86);
  --ink:#0b2230;
  --muted:rgba(0,0,0,.6);
  --stroke:rgba(0,0,0,.10);
  --shadow:0 18px 40px rgba(0,0,0,.10);
  --brand:#007272;
  --brand2:#ad0075;
}

*{box-sizing:border-box}
html,body{height:100%}
body.calm-bg{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% 20%, rgba(0,114,114,.18), transparent 60%),
              radial-gradient(900px 500px at 80% 30%, rgba(173,0,117,.16), transparent 55%),
              linear-gradient(180deg, var(--bg1), var(--bg2));
  color:var(--ink);
  overflow:hidden;
}

.bg-canvas{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  opacity:.55;
}

.header{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px 16px;
}

.header-content{
  width:min(560px, 92vw);
}

.login-box{
  position:relative;
  width:100%;
  background:var(--card);
  border:1px solid var(--stroke);
  border-radius:22px;
  padding:22px 22px 18px;
  box-shadow:var(--shadow);
  backdrop-filter: blur(10px);
  display:grid;
  gap:10px;
}

.logo{
  width:min(420px, 92%);
  max-height:140px;
  object-fit:contain;
  margin:6px auto 0;
  display:block;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.10));
}

#greeting{
  margin: 2px 0 4px;
  font-size: 20px;
  text-align:center;
  font-weight: 900;
}

label{
  font-size: 13px;
  font-weight: 800;
  color: rgba(0,0,0,.72);
}

input[type="email"], input[type="password"]{
  width:100%;
  border:1px solid rgba(0,0,0,.14);
  background:rgba(255,255,255,.92);
  border-radius:14px;
  padding:12px 12px;
  font-size:14px;
  outline:none;
}

input[type="email"]:focus, input[type="password"]:focus{
  border-color: rgba(0,114,114,.55);
  box-shadow: 0 0 0 4px rgba(0,114,114,.18);
}

.btn-1{
  width:100%;
  border:none;
  border-radius:14px;
  padding:12px 14px;
  font-weight:900;
  cursor:pointer;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  color:white;
  box-shadow: 0 12px 20px rgba(0,0,0,.14);
}

.btn-1:hover{ filter: brightness(1.03); }

.reset-link{
  text-align:center;
  font-size: 13px;
  color: rgba(0,0,0,.68);
  text-decoration: none;
  margin-top: 2px;
}
.reset-link:hover{ text-decoration: underline; }

#msg{
  text-align:center;
  color: rgba(0,0,0,.70);
  min-height: 18px;
}

/* Country picker */
.country-picker{
  position:absolute;
  top:12px;
  right:12px;
  display:flex;
  align-items:center;
  gap:8px;
}

.country-select{
  border:1px solid rgba(0,0,0,.14);
  background:rgba(255,255,255,.92);
  border-radius:999px;
  padding:7px 10px;
  font-size:12px;
  font-weight:800;
  color:rgba(0,0,0,.72);
  outline:none;
}

.country-select:focus{
  border-color: rgba(173,0,117,.45);
  box-shadow: 0 0 0 4px rgba(173,0,117,.16);
}

/* A11y helper */
.sr-only{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

@media (max-width:520px){
  .login-box{ padding:18px 16px 14px; border-radius:18px; }
  .logo{ max-height:120px; }
}
