:root {
  --page-bg: #eef2ea;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --panel-dark: #103229;
  --panel-accent: #1f6f54;
  --panel-accent-soft: rgba(214, 255, 235, 0.14);
  --text-primary: #163026;
  --text-secondary: #557267;
  --text-muted: #7b9289;
  --border-soft: rgba(18, 58, 46, 0.12);
  --input-bg: #f7faf8;
  --danger: #c84444;
  --shadow-lg: 0 24px 60px rgba(16, 50, 41, 0.18);
  --shadow-md: 0 12px 30px rgba(18, 58, 46, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(49, 128, 91, 0.22), transparent 32%),
    radial-gradient(circle at bottom right, rgba(18, 58, 46, 0.2), transparent 30%),
    linear-gradient(135deg, #f6f8f3 0%, #dde7dd 48%, #ecf1ea 100%);
  color: var(--text-primary);
}

.page-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.login-layout {
  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px);
}

.brand-panel {
  position: relative;
  padding: 48px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    linear-gradient(150deg, #163f33 0%, #1b5a45 52%, #0f2f27 100%);
  color: #f4fbf7;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.brand-panel::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -120px;
  bottom: -120px;
  border-radius: 50%;
  background: rgba(203, 255, 227, 0.12);
  filter: blur(4px);
}

.brand-badge,
.brand-footer,
.highlight-card {
  position: relative;
  z-index: 1;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.brand-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 251, 247, 0.82);
}

.brand-copy {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.eyebrow,
.panel-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 14px;
  color: #b7e8cc;
}

.brand-copy h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  margin-bottom: 18px;
}

.brand-description {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(244, 251, 247, 0.84);
}

.brand-highlights {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.highlight-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--panel-accent-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.highlight-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  color: #dcffee;
  font-size: 18px;
}

.highlight-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.highlight-card p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(244, 251, 247, 0.76);
}

.brand-footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 13px;
  color: rgba(244, 251, 247, 0.72);
}

.login-container {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 44px 28px;
}

.login-header {
  margin-bottom: 26px;
}

.panel-label {
  margin-bottom: 10px;
  color: var(--panel-accent);
}

.login-header h2 {
  font-size: 34px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.login-header p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.login-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: #8aa196;
}

.input-group input {
  width: 100%;
  padding: 15px 48px 15px 46px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--input-bg);
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.input-group input:focus {
  border-color: rgba(31, 111, 84, 0.45);
  outline: none;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(31, 111, 84, 0.12);
}

.input-group input::placeholder {
  color: #9baea5;
}

.password-toggle {
  position: absolute;
  right: 15px;
  color: #8aa196;
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--panel-accent);
}

.error-message {
  color: var(--danger);
  font-size: 12px;
  margin-top: 6px;
  min-height: 18px;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 2px 0 22px;
}

.remember-me {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.remember-me input {
  margin-right: 8px;
  accent-color: var(--panel-accent);
}

.forgot-password {
  color: var(--panel-accent);
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
}

.forgot-password:hover {
  text-decoration: underline;
}

.login-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #1f6f54 0%, #2f8f69 100%);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.login-btn:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.login-btn:active {
  transform: translateY(1px);
}

.login-btn:disabled {
  cursor: wait;
  opacity: 0.88;
}

.form-note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.login-status {
  text-align: center;
  margin-top: 15px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  display: none;
}

.login-status.success {
  display: block;
  background-color: #eaf8f0;
  color: #236746;
  border: 1px solid rgba(35, 103, 70, 0.18);
}

.login-status.error {
  display: block;
  background-color: #fff0f1;
  color: #b03d49;
  border: 1px solid rgba(176, 61, 73, 0.16);
}

.login-footer {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 12px;
}

@media (max-width: 980px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .brand-panel,
  .login-container {
    padding: 36px 28px;
  }

  .brand-copy h1 {
    font-size: 40px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 16px;
  }

  .brand-panel,
  .login-container {
    padding: 28px 20px;
  }

  .brand-badge {
    gap: 12px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .login-header h2 {
    font-size: 28px;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-layout {
  animation: fadeIn 0.55s ease-out;
}
