:root {
  --green-dark: #075331;
  --green: #0a6a3d;
  --green-soft: #edf6f0;
  --gold: #e9b900;
  --gold-soft: #fff8d9;
  --text: #17211b;
  --muted: #6d756f;
  --line: #dfe6e1;
  --white: #ffffff;
  --shadow: 0 16px 42px rgba(7, 83, 49, 0.10);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(233,185,0,.10), transparent 25%),
    radial-gradient(circle at 85% 70%, rgba(10,106,61,.08), transparent 30%),
    #fbfcfa;
}

button, input { font: inherit; }

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 36px 20px 28px;
}

.corner {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.corner-top {
  width: 480px;
  height: 220px;
  top: -110px;
  left: -170px;
  background: var(--green-dark);
  border-radius: 0 0 100% 0;
  transform: rotate(-8deg);
  box-shadow: 0 14px 0 var(--gold);
}

.corner-bottom {
  width: 620px;
  height: 220px;
  right: -180px;
  bottom: -120px;
  background: var(--green-dark);
  border-radius: 100% 0 0 0;
  transform: rotate(-5deg);
  box-shadow: 0 -14px 0 var(--gold);
}

.login-wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 860px);
  margin: 0 auto;
}

.brand-block {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 26px;
  align-items: center;
  margin-bottom: 26px;
}

.brand-block img {
  width: 132px;
  height: 156px;
  object-fit: contain;
  background: var(--white);
  border-radius: 12px;
}

.institution {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

h1 {
  margin: 0;
  font-family: Montserrat, Inter, sans-serif;
  color: var(--green-dark);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.03;
  text-transform: uppercase;
}

.subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.role-section {
  text-align: center;
  margin: 0 auto 24px;
}

.role-section h2 {
  font-size: 1rem;
  margin: 0 0 14px;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.role-card {
  min-height: 126px;
  border: 1px solid var(--line);
  border-bottom: 4px solid transparent;
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--green-dark);
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}

.role-card:hover {
  transform: translateY(-3px);
  border-bottom-color: var(--gold);
}

.role-card.selected {
  background: var(--green-soft);
  border-color: rgba(10,106,61,.35);
  border-bottom-color: var(--green);
  box-shadow: 0 10px 28px rgba(7,83,49,.12);
}

.role-icon { font-size: 2rem; }

.login-card {
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow);
}

label {
  display: block;
  margin: 0 0 8px;
  color: var(--green-dark);
  font-weight: 700;
}

.input-wrap {
  width: 100%;
  min-height: 52px;
  border: 1px solid #cfd8d2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  margin-bottom: 20px;
  background: #fff;
}

.input-wrap:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(10,106,61,.11);
}

.input-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.toggle-password {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.form-links {
  text-align: right;
  margin: -6px 0 20px;
}

.form-links a,
footer a {
  color: var(--green-dark);
}

.primary-btn,
.google-btn {
  width: 100%;
  min-height: 50px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.primary-btn {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
}

.google-btn {
  border: 1px solid #cfd8d2;
  background: #fff;
  color: var(--text);
}

.primary-btn:hover,
.google-btn:hover { transform: translateY(-1px); }

.separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
}

.separator::before,
.separator::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.google-g {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  border-radius: 50%;
  color: #4285f4;
  font-weight: 800;
  border: 1px solid #e1e1e1;
}

.status {
  min-height: 20px;
  margin: 14px 0 0;
  text-align: center;
  color: var(--green-dark);
  font-size: .92rem;
}

footer {
  padding: 18px 10px 0;
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
}

footer p { margin: 0 0 6px; }

@media (max-width: 760px) {
  .page-shell { padding-top: 24px; }

  .brand-block {
    grid-template-columns: 94px 1fr;
    gap: 16px;
  }

  .brand-block img {
    width: 94px;
    height: 112px;
  }

  .institution { font-size: .78rem; }

  .role-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .role-card { min-height: 110px; }

  .login-card { padding: 22px; }

  .corner-top {
    width: 320px;
    height: 150px;
  }

  .corner-bottom {
    width: 360px;
    height: 160px;
  }
}

@media (max-width: 480px) {
  .brand-block {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .brand-block img {
    width: 108px;
    height: 128px;
  }

  h1 { font-size: 1.9rem; }

  .subtitle { font-size: .95rem; }

  .role-grid { gap: 10px; }

  .role-card {
    min-height: 98px;
    font-size: .9rem;
  }

  .login-card { padding: 18px; }
}
