
:root{
  --bg1:#f5f7fb;
  --bg2:#eef9f1;
  --card: rgba(255,255,255,.78);
  --border: rgba(15,23,42,.10);
  --shadow: 0 20px 50px rgba(15,23,42,.12);
  --radius: 22px;
  --text: #0f172a;
  --muted: #6b7280;
  --green1:#2fbf50;
  --green2:#0c7a2a;
  --danger:#dc3545;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family:Roboto,system-ui,-apple-system,Segoe UI,Arial,sans-serif;
  color:var(--text);
  min-height:100vh;
  display:grid;
  place-items:center;
  background:
    radial-gradient(900px 450px at 15% 10%, rgba(47,191,80,.20), transparent 60%),
    radial-gradient(900px 450px at 85% 15%, rgba(12,122,42,.16), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  padding: 18px;
}

/* Layout */
.auth-shell{
  width:min(980px, 100%);
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 900px){
  .auth-shell{ grid-template-columns: 1fr; }
}

/* Left panel */
.brand-panel{
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(47,191,80,.16), rgba(12,122,42,.08));
  border: 1px solid rgba(47,191,80,.18);
  padding: 26px;
  position: relative;
  overflow:hidden;
}
.brand-panel::before{
  content:"";
  position:absolute;
  inset:-80px;
  background: radial-gradient(closest-side, rgba(255,255,255,.35), transparent 60%);
  transform: rotate(18deg);
  pointer-events:none;
}
.brand-logo{
  display:flex;
  align-items:center;
  gap: 12px;
}
.brand-logo img{
  height: 58px;
  width:auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 25px rgba(2,44,12,.18));
}
.brand-title{
  margin: 0;
  font-weight: 900;
  letter-spacing: -.02em;
}
.brand-sub{
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 42ch;
  line-height: 1.5;
}
.brand-badges{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 18px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(15,23,42,.08);
  color: rgba(15,23,42,.75);
  font-weight: 700;
  font-size: 13px;
}

/* Right card (form) */
.auth-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  padding: 22px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.auth-header h2{
  margin: 0;
  font-weight: 900;
  letter-spacing: -.02em;
}
.auth-header p{
  margin: 6px 0 0;
  color: var(--muted);
}

/* Alert */
.alert{
  margin-top: 14px;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  border: 1px solid rgba(220,53,69,.25);
  background: rgba(220,53,69,.10);
  color: #7f1d1d;
}

/* Inputs */
.form-grid{
  margin-top: 16px;
  display:grid;
  gap: 12px;
}
.field label{
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 6px;
  display:block;
}
.input-wrap{
  position:relative;
}
.input{
  width:100%;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.85);
  padding: 0 44px 0 14px;
  outline: none;
  font-size: 14px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.input:focus{
  border-color: rgba(47,191,80,.55);
  box-shadow: 0 0 0 5px rgba(47,191,80,.15);
}
.icon-btn{
  position:absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.9);
  display:grid;
  place-items:center;
  cursor:pointer;
  color: rgba(15,23,42,.7);
}
.icon-btn:hover{ color: rgba(15,23,42,.95); }

/* Submit */
.actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-top: 4px;
}
.btn{
  width:100%;
  height: 46px;
  border-radius: 14px;
  border: none;
  cursor:pointer;
  font-weight: 900;
  letter-spacing: .02em;
  color:#fff;
  background: linear-gradient(135deg, var(--green1), var(--green2));
  box-shadow: 0 18px 28px rgba(12,122,42,.18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: 0 22px 34px rgba(12,122,42,.22); }

.meta{
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}
.meta a{
  color: var(--green2);
  font-weight: 900;
  text-decoration: none;
}
.meta a:hover{ text-decoration: underline; }

.small-note{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(15,23,42,.55);
}
