:root {
  --bg: #efede7;
  --card: #f8f8f6;
  --dark: #16350f;
  --green: #74b82f;
  --green-soft: #97c85a;
  --gold: #c7a33f;
  --text: #617053;
  --muted: #a7ae94;
  --shadow: 0 10px 26px rgba(39, 45, 29, 0.08);
  --radius-xl: 22px;
  --radius-lg: 14px;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text);
}

#loginContainer {
  min-height: 100vh;
}

.login-screen {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: var(--bg);
}

.login-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  padding: 26px 24px 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* TOP LOGO */
.login-top-area {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: 200px;
  margin-bottom: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-top-logo-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.login-top-logo {
  display: block;
  width: min(340px, 82vw);
  max-height: 96px;
  height: auto;
  object-fit: contain;
}

/* CARD */
.login-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 350px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(2px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 30px 28px 28px;
  box-sizing: border-box;
}

.login-card-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #677556;
  margin-bottom: 24px;
}

.login-field {
  margin-bottom: 18px;
}

.login-field-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6d785d;
  margin-bottom: 8px;
}

.login-field-input {
  width: 100%;
  height: 52px;
  box-sizing: border-box;
  border: 1.5px solid #d8ddcf;
  border-radius: 12px;
  background: rgba(242, 242, 238, 0.55);
  padding: 0 16px;
  outline: none;
  font-size: 16px;
  color: #47523d;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.login-field-input::placeholder {
  color: #a3aa92;
}

.login-field-input:focus {
  border-color: var(--green);
  background: #f7f8f4;
  box-shadow: 0 0 0 3px rgba(116, 184, 47, 0.12);
}

.login-pin-input {
  text-align: center;
  letter-spacing: 0.55em;
  font-size: 24px;
  font-weight: 700;
  padding-left: 22px;
}

.login-error {
  margin: 4px 0 14px;
  font-size: 13px;
  color: #b34747;
}

.btn-login {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 14px;
  background: var(--dark);
  color: #f2f3ec;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 20px rgba(22, 53, 15, 0.16);
}

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

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

.btn-login:disabled {
  opacity: 0.7;
  cursor: default;
}

/* FOOTER LOGO */
.login-bottom-area {
  position: relative;
  z-index: 2;
  margin-top: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-footer-logo-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.login-footer-logo {
  display: block;
  width: 92px;
  max-width: 28vw;
  height: auto;
  object-fit: contain;
  opacity: 0.95;
}

@media (max-width: 420px) {
  .login-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .login-top-area {
    margin-top: 56px;
    margin-bottom: 22px;
  }

  .login-top-logo {
    width: min(300px, 84vw);
    max-height: 82px;
  }

  .login-card {
    padding: 26px 22px 24px;
  }

  .login-footer-logo {
    width: 78px;
  }
}
