/* Import Google font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --brand: #004d40;
  --brand-600: #00695c;
  --brand-soft: #e6f0ee;
  --ink: #10201d;
  --muted: #6b7c79;
  --line: #dfe6e4;
  --danger: #d64545;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  font-family: "Poppins", sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 15% 10%, #0a6a58 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 90%, #05372f 0%, transparent 55%),
    linear-gradient(135deg, #012f27 0%, #004d40 55%, #01695c 100%);
}

a {
  text-decoration: none;
}

/* ---------- Card ---------- */
.login-box,
.register-box {
  width: 100%;
  max-width: 420px;
  margin: 0;
}

.login-box .card,
.register-box .card {
  border: none;
  border-radius: var(--radius);
  background: transparent;
  box-shadow: none;
}

.login-card-body,
.register-card-body {
  border-radius: var(--radius) !important;
  background: #fff;
  padding: 38px 34px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.12);
  animation: card-in 0.45s ease-out both;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ---------- Logo / heading ---------- */
.login-logo {
  text-align: center;
  margin-bottom: 6px;
}

.login-logo img.brand-image {
  width: 132px !important;
  height: auto;
}

.page-title {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--ink);
  margin: 14px 0 4px;
}

.login-box-msg {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

/* ---------- Inputs ---------- */
.input_box {
  position: relative;
  margin-top: 22px;
  width: 100%;
  height: 50px;
}

.input_box input {
  height: 100%;
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  outline: none;
  padding: 0 44px;
  font-size: 14px;
  color: var(--ink);
  background: #fbfcfc;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.input_box input::placeholder {
  color: #9aa8a5;
}

.input_box:hover input {
  border-color: #bfcecb;
  background: #fff;
}

.input_box input:focus {
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 77, 64, 0.12);
}

.input_box i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 19px;
  color: #8b9a97;
  transition: color 0.18s ease;
  pointer-events: none;
}

.input_box i.email,
.input_box i.password {
  left: 14px;
}

.input_box input:focus ~ i.email,
.input_box input:focus ~ i.password {
  color: var(--brand);
}

.input_box i.pw_hide {
  right: 14px;
  font-size: 17px;
  cursor: pointer;
  pointer-events: auto;
}

.input_box i.pw_hide:hover {
  color: var(--brand);
}

.email-valid-icon {
  color: #1f9d6a;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 19px;
  display: none;
}

.input_box.is-invalid input {
  border-color: var(--danger);
  background: #fff7f7;
}

.invalid-feedback {
  display: block;
  font-size: 12px;
  color: var(--danger);
  margin-top: 6px;
}

/* ---------- Options row ---------- */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.icheck-primary > label,
.checkbox label {
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
}

.icheck-primary > input:first-child:checked + label::before {
  background-color: var(--brand);
  border-color: var(--brand);
}

.icheck-primary > input:first-child + label:hover::before,
.icheck-primary > input:first-child:focus + label::before {
  border-color: var(--brand);
}

a.forgot-link,
.login-card-body a {
  color: var(--brand-600);
  font-size: 13px;
  font-weight: 500;
}

a.forgot-link:hover,
.login-card-body a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* ---------- Button ---------- */
.login-card-body .btn-block,
.btn-auth {
  width: 100%;
  margin-top: 24px;
  padding: 12px 0;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-600), var(--brand)) !important;
  box-shadow: 0 8px 18px rgba(0, 77, 64, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.login-card-body .btn-block:hover,
.btn-auth:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 77, 64, 0.34);
  color: #fff;
}

.login-card-body .btn-block:active,
.btn-auth:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0, 77, 64, 0.26);
}

.login-card-body .btn-block:focus,
.btn-auth:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 77, 64, 0.18);
}

/* ---------- Divider + secondary action ---------- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 16px;
  color: #9aa8a5;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

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

.btn-auth-alt {
  display: block;
  width: 100%;
  padding: 11px 0;
  text-align: center;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 14px !important;
  font-weight: 500;
  color: var(--brand) !important;
  background: #fff;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.btn-auth-alt:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  text-decoration: none !important;
}

.auth-footnote {
  margin-top: 22px;
  text-align: center;
  font-size: 12px;
  color: #9aa8a5;
}

/* ---------- Alerts ---------- */
.login-card-body .alert {
  border: none;
  border-radius: 12px;
  font-size: 13px;
  padding: 10px 14px;
}

/* ---------- Small screens ---------- */
@media (max-width: 480px) {
  .login-card-body,
  .register-card-body {
    padding: 30px 22px 26px;
  }

  .page-title {
    font-size: 20px;
  }
}
