@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap");

:root {
  --primary: #101e44;
  --primary-deep: #000622;
  --secondary: #3b6934;
  --text: #191c1e;
  --muted: #45464e;
  --glass: rgba(255, 255, 255, 0.22);
  --glass-border: rgba(255, 255, 255, 0.28);
  --white-soft: rgba(255, 255, 255, 0.88);
  --danger: #ba1a1a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 244, 150, 0.34), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.04));
  z-index: 0;
  pointer-events: none;
}

.login-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 32px 20px;
  perspective: 1000px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  padding: 42px 42px 34px;
  border-radius: 34px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 24px 70px rgba(16, 30, 68, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  animation: cardIn 700ms ease both, softFloat 7s ease-in-out infinite;
  transform-style: preserve-3d;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.login-card:hover {
  box-shadow:
    0 28px 82px rgba(16, 30, 68, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.login-logo {
  width: 96px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(16, 30, 68, 0.18));
}

.login-head {
  text-align: center;
  margin-bottom: 34px;
}

.login-head h1 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--primary-deep);
  letter-spacing: -0.03em;
}

.login-head p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
}

.login-error {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(186, 26, 26, 0.12);
  border: 1px solid rgba(186, 26, 26, 0.24);
  color: var(--danger);
  font-weight: 700;
  font-size: 14px;
}

.login-form {
  width: 100%;
}

.field-group {
  margin-bottom: 24px;
}

.field-group label {
  display: inline-block;
  margin: 0 0 9px 6px;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
}

.input-box {
  position: relative;
}

.input-box input {
  width: 100%;
  height: 58px;
  border-radius: 18px;
  border: 1px solid rgba(16, 30, 68, 0.42);
  background: var(--white-soft);
  color: var(--primary-deep);
  padding: 0 52px;
  font-size: 16px;
  font-weight: 500;
  outline: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.input-box input::placeholder {
  color: rgba(69, 70, 78, 0.52);
}

.input-box input:focus {
  background: #fff;
  border-color: var(--secondary);
  box-shadow: 0 0 0 5px rgba(59, 105, 52, 0.12);
  transform: translateY(-1px);
}

.input-box > i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 23px;
  color: var(--primary);
  opacity: 0.86;
  pointer-events: none;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  width: 32px;
  height: 32px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 160ms ease, transform 160ms ease;
}

.password-toggle:hover {
  background: rgba(16, 30, 68, 0.08);
}

.password-toggle:active {
  transform: translateY(-50%) scale(0.94);
}

.password-toggle i {
  font-size: 23px;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 4px 0 26px;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.remember input {
  width: 20px;
  height: 20px;
  accent-color: var(--secondary);
}

.text-link,
.register-line a {
  color: var(--secondary);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover,
.register-line a:hover {
  text-decoration: underline;
}

.login-btn {
  width: 100%;
  height: 60px;
  border: 0;
  border-radius: 18px;
  background: var(--primary);
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 14px 28px rgba(16, 30, 68, 0.26);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.login-btn i {
  font-size: 30px;
  transition: transform 180ms ease;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(16, 30, 68, 0.32);
  background: #0c1838;
}

.login-btn:hover i {
  transform: translateX(4px);
}

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

.register-line {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  text-align: center;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

.tagline {
  margin-top: 42px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(16, 30, 68, 0.74);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  animation: fadeUp 900ms ease 240ms both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softFloat {
  0%, 100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -8px;
  }
}

@media (max-width: 520px) {
  body {
    overflow-y: auto;
  }

  .login-page {
    padding: 24px 16px;
  }

  .login-card {
    padding: 32px 24px 28px;
    border-radius: 28px;
  }

  .login-logo {
    width: 82px;
  }

  .login-head h1 {
    font-size: 27px;
  }

  .login-head p {
    font-size: 14px;
  }

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

  .login-btn {
    font-size: 21px;
  }

  .tagline {
    margin-top: 28px;
    font-size: 10px;
    letter-spacing: 0.2em;
  }
}
