@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
  --primary: #2a6333;
  --primary-600: #24562c;
  --primary-700: #1f4a25;
  --card: #ffffff;
  --bg: #f3f6f4;
  --text: #1f2937;
  --muted: #6b7280;
  --ring: #16a34a;
  --radius: 16px;
  --shadow-sm: 0 4px 10px rgba(253, 253, 253, 0.06);
  --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.1);
  --default-font: Inter;
}

* {
  box-sizing: border-box;
  padding: 0px;
  margin: 0px;
}
html,
body {
  height: 100svh;
  font-family: 'Montserrat', sans-serif;
  font-family: Inter;
  font-size: 16px;
  color: rgb(60,60,60);
}
input, button, textarea, select {
  font-family: var(--default-font);
  font-size: 16px;
}
body {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
h1 {
  margin: 20px 0px;
  font-weight: normal;
}
footer {
  padding: 12px;
  width: 100%;
}
footer > .term-and-privacy {
  display: inline-flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  color: rgb(120,120,120);
  width: 100%;
  font-size: 12px;
}
.term-and-privacy > a {
  text-decoration: none;
  color: rgb(40,40,40);
}
.term-and-privacy > a:hover {
  text-decoration: underline;
}
footer > .copyright-notice {
  margin-top: 12px;
  color: rgb(80,80,80);
  text-align: center;
  font-size: 12px;
}

.page {
  max-width: 440px;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
}

.card {
  background-color: white;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .06);
}
.card-subtitle {
  font-weight: normal;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(42, 99, 51, .08), transparent 60%),
    linear-gradient(90deg, rgba(42, 99, 51, .05), transparent 40%, transparent 60%, rgba(42, 99, 51, .05));
  border-bottom-right-radius: 50%;
}

.brand img {
  width: auto;
  height: 46px;
  flex: 0 0 46px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .12));
}

.brand-name {
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--primary);
  line-height: 1.2;
  font-size: clamp(14px, 2.6vw, 15.5px);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
}

.body {
  padding: 20px 32px;
}

.row {
  margin-bottom: 16px
}

.label {
  font-size: 12.5px;
  color: rgb(40,40,40);
  margin-bottom: 6px;
  letter-spacing: .2px;
  font-weight: normal;
}

.input {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid var(--primary);
  background-color: #fff;
  border-radius: 4px;
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.input::placeholder {
  color: #9ca3af
}

.input:focus {
  box-shadow: 0 0 0 4px #c9e8ce;
}

/* Password toggle */
.pw-wrap {
  position: relative
}

.toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  color: #6b7280;
  padding: 6px;
  border-radius: 10px;
  transition: background-color .15s ease, color .15s ease;
}

.toggle:hover {
  background: #f3f4f6;
  color: #374151
}

.toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .25);
}

/* Button */
.btn {
  width: 100%;
  padding: 12px 14px;
  /* background: linear-gradient(180deg, var(--primary), var(--primary-600)); */
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  letter-spacing: .2px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  /* transition: filter .15s ease, box-shadow .15s ease, background-position .2s ease; */
  background-size: 100% 140%;
  background-position: 50% 0%;
}

.btn:hover {
  background-color: rgba(42, 99, 51, 0.9);
  /* filter: brightness(1.02); */
  box-shadow: 0 8px 20px rgba(42, 99, 51, .20);
}

.btn:active {
  background-color: rgb(42, 99, 51);
}

.btn:disabled {
  opacity: .75;
  cursor: not-allowed
}

.meta {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

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

.input-group .input {
  width: 100%;
  padding-right: 2.5rem;
}

.toggle-password {
  position: absolute;
  right: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 10px;
  font-weight: bold;
  color: var(--primary);
  display: inline-block;
  height: 100%;
  padding: 4px;
  display: inline-flex;
  align-items: center;
}

.register-link {
  text-align: center;
  margin-top: 15px;
  color: #1a4f31;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.register-link:hover {
  color: #2a6333;
  text-decoration: underline;
}

.registration-notice {
  margin-top: 36px;
  display: block;
  width: 100%;
  text-align: center;
  color: rgb(80, 80, 80);
  font-size: 14px;
}

/* For Mobile View */
@media screen and (max-width: 480px) {
  body {
    background: white;
    height: 100svh;
  }
  .page {
    padding: 0px;
    margin: 0px;
    height: 100%;
    max-width: unset;
    width: 100%;
  }
  .page >.card {
    height: 100%;
  }
  .card {
    box-shadow: none;
    border-radius: 0px;
  }
  .card > .body {
    padding-top: 36px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .term-and-privacy > a {
    color: #505050;
  }
}

/* For Tablets and Desktop Views */
@media screen and (min-width: 481px) {
  body {
    background: linear-gradient(to bottom, rgba(82, 167, 48, 0.8), rgba(173, 194, 55, 0.8));
  }
  .card {
    min-width: 400px;
  }
  .card > .body {
    padding-top: 0px;
  }
  footer > .copyright-notice {
    color: var(--primary);
  }
  footer > .term-and-privacy > a {
    color: var(--primary);
    font-weight: bold;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important
  }
}