:root {
  --bg: #f4f1e8;
  --ink: #1f2933;
  --brand: #0f766e;
  --brand-dark: #0b4f4a;
  --card: #fffaf0;
  --muted: #6b7280;
  --danger: #b91c1c;
  --ok: #166534;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  background: radial-gradient(circle at 10% 10%, #d7efe9 0%, #f4f1e8 35%, #f4f1e8 100%);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.5;
  z-index: 0;
}

.bg-shape-a {
  width: 220px;
  height: 220px;
  background: #8ec5a4;
  top: -60px;
  left: -40px;
}

.bg-shape-b {
  width: 280px;
  height: 280px;
  background: #f7c57a;
  bottom: -120px;
  right: -60px;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  padding: 24px;
  align-items: center;
}

.brand-panel {
  background: linear-gradient(145deg, #0f766e 0%, #115e59 100%);
  color: #ecfeff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(15, 118, 110, 0.25);
  animation: rise 0.6s ease;
}

.brand-panel h1 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.brand-panel p {
  margin: 0 0 16px;
  color: #d1fae5;
}

.brand-panel ul {
  margin: 0;
  padding-left: 18px;
}

.brand-panel li {
  margin-bottom: 8px;
}

.login-card {
  background: var(--card);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
  animation: rise 0.75s ease;
}

.login-card h2 {
  margin: 0;
}

.subtitle {
  margin: 8px 0 14px;
  color: var(--muted);
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.seg-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 10px;
  font-weight: 600;
}

.seg-btn.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d4d4d8;
  font-size: 1rem;
  margin-bottom: 14px;
}

button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  cursor: pointer;
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.alert {
  display: none;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 0.92rem;
}

.alert.show {
  display: block;
}

.hidden {
  display: none;
}

.alert.error {
  background: #fee2e2;
  color: var(--danger);
}

.alert.success {
  background: #dcfce7;
  color: var(--ok);
}

.notice {
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 0.92rem;
}

.notice-info {
  background: #e0f2fe;
  color: #0c4a6e;
  border: 1px solid #bae6fd;
}

@keyframes rise {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    order: 2;
  }

  .login-card {
    order: 1;
  }
}
