@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --auth-bg-a: #0f3b22;
  --auth-bg-b: #1f6b3a;
  --auth-bg-c: #39a75a;
  --auth-card: rgba(255, 255, 255, 0.95);
  --auth-text: #0f2a1a;
  --auth-muted: #4f6758;
  --auth-input-border: #d6e4da;
  --auth-focus: #2f9f55;
  --auth-cta-a: #2ea44f;
  --auth-cta-b: #1f7d3d;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", "Segoe UI", sans-serif;
  color: var(--auth-text);
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.2), transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(255, 220, 130, 0.2), transparent 33%),
    linear-gradient(135deg, var(--auth-bg-a) 0%, var(--auth-bg-b) 48%, var(--auth-bg-c) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-shell {
  width: 100%;
  max-width: 1080px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
  background: var(--auth-card);
  border-radius: 22px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 30px 70px rgba(4, 24, 11, 0.35);
  backdrop-filter: blur(6px);
  animation: auth-pop 0.45s ease-out;
}

.auth-logo-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 12px;
}

.auth-logo-img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(25, 91, 49, 0.16);
  box-shadow: 0 10px 20px rgba(25, 98, 54, 0.25);
}

.auth-logo-badge {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #39b261, #2b8e4a);
  color: #fff;
  font-size: 34px;
  box-shadow: 0 10px 20px rgba(25, 98, 54, 0.35);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 12px;
  color: #195b31;
  background: rgba(57, 167, 90, 0.15);
}

.auth-title {
  margin: 14px 0 6px;
  font-size: clamp(30px, 3.8vw, 40px);
  line-height: 1.05;
  font-weight: 800;
}

.auth-subtitle {
  margin: 0 0 20px;
  color: var(--auth-muted);
  font-size: 15px;
}

.auth-feedback {
  display: none;
  border-radius: 12px;
  border: 0;
  font-size: 14px;
  padding: 10px 14px;
  margin-bottom: 18px;
}

.auth-feedback.is-error {
  display: block;
  background: #fde9e9;
  color: #a4262c;
}

.auth-form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  text-align: left;
}

.auth-form-grid .col-12 {
  grid-column: span 12;
}

.auth-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #193d2a;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #648774;
  font-size: 15px;
  pointer-events: none;
}

.auth-input {
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--auth-input-border);
  font-size: 14px;
  width: 100%;
}

.auth-input-wrap .auth-input {
  padding-left: 38px;
}

.auth-input:focus {
  border-color: var(--auth-focus);
  box-shadow: 0 0 0 0.2rem rgba(47, 159, 85, 0.2);
  outline: none;
}

.auth-submit {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(120deg, var(--auth-cta-a), var(--auth-cta-b));
  box-shadow: 0 16px 26px rgba(20, 82, 44, 0.28);
  cursor: pointer;
}

.auth-submit:hover {
  filter: brightness(1.05);
}

.auth-switch {
  margin: 18px 0 0;
  text-align: center;
  color: var(--auth-muted);
  font-size: 14px;
}

.auth-switch a {
  color: #1d6d39;
  text-decoration: none;
  font-weight: 700;
}

.auth-switch a:hover {
  text-decoration: underline;
}

@keyframes auth-pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 576px) {
  body.auth-body {
    padding: 12px;
  }

  .auth-card {
    border-radius: 16px;
    padding: 20px 14px;
  }

  .auth-title {
    font-size: 30px;
  }
}
