/* =========================================================
   COMRADES FISH POINT — PREMIUM ADMIN LOGIN
   Forest Green • Sunset Orange • Warm Cream
   ========================================================= */

:root {
  --green: #176b4d;
  --green-dark: #102c26;
  --green-deep: #0b211c;
  --green-light: #e6f3e9;
  --green-soft: #f0f7f0;

  --orange: #f49a45;
  --orange-dark: #d97925;
  --orange-light: #fff0df;

  --text: #1b3028;
  --muted: #75857a;
  --border: #e3eae1;
  --white: #ffffff;
  --danger: #a72e2e;

  --radius: 15px;
  --shadow: 0 18px 55px rgba(16, 44, 38, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at 95% 5%,
      rgba(244, 154, 69, 0.12),
      transparent 30%
    ),
    #f7f6ef;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(244, 154, 69, 0.6);
  outline-offset: 3px;
}

/* =========================================================
   TWO-COLUMN LOGIN LAYOUT
========================================================= */

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  min-height: 100vh;
}

/* =========================================================
   LEFT BRANDING PANEL
========================================================= */

.brand-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(28px, 5vw, 72px);
  overflow: hidden;
  color: white;
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(244, 154, 69, 0.2),
      transparent 28%
    ),
    radial-gradient(
      circle at 5% 85%,
      rgba(69, 144, 99, 0.25),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      #102c26 0%,
      #163b2f 55%,
      #176b4d 100%
    );
}

/* Decorative background circles */
.brand-panel::before,
.brand-panel::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.brand-panel::before {
  top: 20%;
  right: -150px;
  width: 400px;
  height: 400px;
  box-shadow:
    0 0 0 35px rgba(255, 255, 255, 0.018),
    0 0 0 75px rgba(255, 255, 255, 0.015);
}

.brand-panel::after {
  bottom: -170px;
  left: -130px;
  width: 340px;
  height: 340px;
  border-color: rgba(244, 154, 69, 0.13);
  box-shadow: 0 0 0 35px rgba(244, 154, 69, 0.025);
}

/* Branding link */

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: white;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: -0.3px;
}

.brand strong {
  font-weight: 850;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 15px;
  background: linear-gradient(
    145deg,
    #ffc477,
    var(--orange)
  );
  color: var(--green-deep);
  font-weight: 950;
  letter-spacing: -1px;
  box-shadow: 0 7px 22px rgba(244, 154, 69, 0.2);
}

/* Main brand message */

.brand-content {
  max-width: 510px;
  margin: 70px 0;
  animation: brand-appear 0.7s ease-out both;
}

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

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

.eyebrow {
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.brand-panel .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ffc477;
}

.brand-panel .eyebrow::before {
  width: 22px;
  height: 2px;
  background: var(--orange);
  content: "";
}

.brand-content h1 {
  margin: 22px 0;
  color: white;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -2.8px;
}

.brand-content h1 span {
  color: #ffc477;
}

.brand-content p {
  max-width: 420px;
  color: #d0e0d5;
  font-size: 15px;
  line-height: 1.9;
}

/* Feature list */

.feature-list {
  display: grid;
  gap: 17px;
  margin-top: 35px;
  color: #edf7f0;
  font-size: 13px;
}

.feature-list div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-list span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  border: 1px solid rgba(244, 154, 69, 0.25);
  border-radius: 50%;
  background: rgba(244, 154, 69, 0.14);
  color: #ffc477;
  font-weight: 900;
}

.brand-footer {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: #bfd4c5;
  font-size: 11px;
  line-height: 1.8;
}

/* =========================================================
   RIGHT LOGIN FORM PANEL
========================================================= */

.form-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 40px 28px 24px;
}

.login-card {
  width: 100%;
  max-width: 410px;
  animation: card-appear 0.55s ease-out both;
}

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

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

.login-card h2 {
  margin: 15px 0 9px;
  color: var(--green-dark);
  font-size: 35px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.4px;
}

.intro {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

/* =========================================================
   LOGIN FORM
========================================================= */

#loginForm {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#loginForm label {
  margin-top: 9px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

#loginForm input {
  width: 100%;
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 11px;
  outline: none;
  background: #fffefa;
  color: var(--text);
  font-size: 13px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

#loginForm input::placeholder {
  color: #9ba69d;
}

#loginForm input:hover {
  border-color: #cbd9cc;
}

#loginForm input:focus {
  border-color: var(--orange);
  background: white;
  box-shadow: 0 0 0 4px rgba(244, 154, 69, 0.13);
}

/* Password field */

.password-field {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.password-field input {
  padding-right: 75px !important;
}

.show-password {
  position: absolute;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 5px 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.show-password:hover {
  background: var(--orange-light);
  color: var(--orange-dark);
}

/* =========================================================
   LOGIN BUTTON
========================================================= */

.login-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 51px;
  margin-top: 18px;
  padding: 15px 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: linear-gradient(
    110deg,
    var(--green),
    #205e45
  );
  color: white;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(23, 107, 77, 0.16);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.login-button:hover {
  background: linear-gradient(
    110deg,
    #205e45,
    var(--green-dark)
  );
  box-shadow: 0 9px 20px rgba(23, 107, 77, 0.23);
  transform: translateY(-2px);
}

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

.login-button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.login-button span {
  color: #ffc477;
  font-size: 18px;
}

/* =========================================================
   SECURITY NOTE
========================================================= */

.security-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 25px 0;
  padding: 13px 14px;
  border: 1px solid #e5ebdf;
  border-radius: 11px;
  background: #f3f7ef;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.security-note > span {
  flex-shrink: 0;
  color: var(--green);
  font-size: 16px;
}

/* Back to storefront */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--orange-dark);
  text-decoration: underline;
}

/* =========================================================
   LOGIN FEEDBACK MESSAGES
========================================================= */

.message {
  margin-bottom: 17px;
  padding: 13px 15px;
  border: 1px solid #f0cfcb;
  border-left: 4px solid var(--danger);
  border-radius: 10px;
  background: #fff0ef;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.message.success {
  border-color: #c8e5cf;
  border-left-color: var(--green);
  background: #eaf6ec;
  color: var(--green);
}

/* =========================================================
   COPYRIGHT FOOTER
========================================================= */

.copyright {
  width: 100%;
  max-width: 410px;
  margin-top: 42px;
  padding-top: 19px;
  border-top: 1px solid #e5e7dc;
  color: #77857a;
  text-align: center;
  font-size: 10px;
  line-height: 1.9;
}

.copyright strong {
  color: var(--green);
  font-weight: 850;
}

.copyright a {
  color: var(--green);
  text-decoration: none;
  font-weight: 750;
}

.copyright a:hover {
  color: var(--orange-dark);
}

/* Mobile-only branding */

.mobile-brand {
  display: none;
}

/* =========================================================
   TABLET AND MOBILE
========================================================= */

@media (max-width: 1000px) {
  .login-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  }

  .brand-panel {
    padding: 35px;
  }

  .brand-content h1 {
    font-size: clamp(38px, 5vw, 54px);
  }

  .form-panel {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (max-width: 800px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    display: none;
  }

  .form-panel {
    position: relative;
    min-height: 100vh;
    padding: 35px 22px 20px;
    background:
      radial-gradient(
        circle at 95% 5%,
        rgba(244, 154, 69, 0.12),
        transparent 28%
      ),
      #f7f6ef;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    max-width: 410px;
    margin: 0 auto 52px;
    color: var(--green-dark);
    font-size: 14px;
    font-weight: 850;
  }

  .mobile-brand .brand-mark {
    width: 41px;
    height: 41px;
    border-color: #f1d4ae;
  }

  .login-card h2 {
    font-size: 31px;
  }

  .copyright {
    margin-top: 38px;
  }
}

@media (max-width: 420px) {
  .form-panel {
    padding: 27px 19px 18px;
  }

  .mobile-brand {
    margin-bottom: 42px;
  }

  .login-card h2 {
    font-size: 29px;
  }

  .intro {
    margin-bottom: 24px;
    font-size: 12px;
  }

  #loginForm input {
    padding: 13px;
  }

  .login-button {
    min-height: 48px;
  }

  .security-note {
    margin: 22px 0;
  }

  .copyright {
    margin-top: 32px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}