@font-face {
  font-family: "Outfit";
  src: url("/site/templates/fonts/Outfit-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/site/templates/fonts/Outfit-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/site/templates/fonts/Outfit-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/site/templates/fonts/Outfit-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: #120201;
  color: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  line-height: 1.4px;
}

/* ── HERO ── */
.hero { position: relative; width: 100%; min-height: 70vh; display: flex; align-items: center; justify-content: flex-start; overflow: hidden; background: #120201; }
.hero-bg { position: absolute; inset: 0; background-color: #e11e16; }
.hero-bg-img { position: absolute; inset: 0; background-size: cover; background-position: center 20%; mix-blend-mode: darken; opacity: 0.85; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, #120201 0%, rgba(18,2,1,0.95) 10%, rgba(18,2,1,0.5) 40%, rgba(18,2,1,0) 100%); }
.hero-content { position: relative; z-index: 10; width: 100%; padding: 4rem 5% 0.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0; }

.hero-motto {
  color: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 50px;
  font-weight: 600;
  text-align: center;
  width: 100%;
  margin-top: -5rem;
}

.motto-dot {
  color: #ffb7b5;
}

/* ── SIGN IN SECTION ── */
.sign-in-section {
  padding: 1rem 5% 3rem;
  margin-top: -13.5rem;
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
}

.sign-in-container {
  max-width: 440px;
  width: 100%;
  text-align: left;
}

.sign-in-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 3rem;
  color: #fff;
}

.sign-in-error {
  background: rgba(225,30,22,0.15);
  border: 1px solid rgba(225,30,22,0.3);
  color: #e11e16;
  font-size: 0.8rem;
  padding: 0.6rem 0.8rem;
  border-radius: 5px;
  margin-bottom: 1.5rem;
}

.sign-in-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sign-in-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sign-in-field label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.required-asterisk {
  color: #e11e16;
}

.sign-in-field input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 5px;
  padding: 0.7rem 2.5rem 0.7rem 0.8rem;
  color: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.9rem;
  outline: none;
  width: 100%;
}

.sign-in-field input:focus {
  border-color: #e11e16;
}

.sign-in-field input::placeholder {
  color: rgba(255,255,255,0.25);
}

/* Password wrapper */
.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eye-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.toggle-password:hover .eye-icon {
  opacity: 1;
}

/* Remember me */
.sign-in-remember {
  margin-top: -0.5rem;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  user-select: none;
}

.remember-label input[type="checkbox"] {
  display: none;
}

.remember-checkmark {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.remember-label input:checked + .remember-checkmark {
  background: #e11e16;
  border-color: #e11e16;
}

.remember-label input:checked + .remember-checkmark::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -1px;
}

.remember-text {
  color: rgba(255,255,255,0.5);
}

/* Sign in button and forgot password row */
.sign-in-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.sign-in-btn {
  background: #e11e16;
  color: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  border: none;
  cursor: pointer;
}

.sign-in-btn:hover {
  background: #c41a13;
}

/* Google sign in button - same row as sign-in */
.sign-in-actions .google-signin-btn {
  background: #fff;
  color: #222;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.7rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.sign-in-actions .google-signin-btn:hover {
  background: #f0f0f0;
}

.google-icon {
  width: 18px;
  height: 18px;
}

.forgot-password-link {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.forgot-password-link:hover {
  color: #ffb7b5;
}

/* Sign up prompt */
.sign-up-prompt {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sign-up-text {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.sign-up-link {
  font-size: 0.82rem;
  color: #ffb7b5;
  text-decoration: none;
  font-weight: 500;
}

.sign-up-link:hover {
  color: #fff;
}

/* ==========================================================================
   MOBILE SIGN IN (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {

  body {
    line-height: 1.4 !important;
    -webkit-tap-highlight-color: transparent;
  }

  /* ── HERO ── */
  .hero {
    min-height: 40vh;
  }

  .hero-content {
    padding: 0rem 1rem 0.5rem;
  }

  .hero-motto {
    font-size: 1.4rem;
    margin-top: 0;
    line-height: 1.2;
  }

  /* ── SIGN IN SECTION ── */
  .sign-in-section {
    padding: 0 1rem 3rem;
    margin-top: -6rem;
  }

  .sign-in-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .sign-in-form {
    gap: 1.2rem;
  }

  .sign-in-field label {
    font-size: 0.7rem;
    margin-bottom: 0.3rem;
  }

  .sign-in-field input {
    font-size: 16px; /* Prevents iOS zoom */
    padding: 0.65rem 2.5rem 0.65rem 0.75rem;
  }

  /* ── ACTIONS ROW ── */
  .sign-in-actions {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .sign-in-btn {
    font-size: 0.8rem;
    padding: 0.65rem 1.2rem;
  }

  .sign-in-actions .google-signin-btn {
    font-size: 0.8rem;
    padding: 0.65rem 1rem;
  }

  .forgot-password-link {
    width: 100%;
    text-align: left;
    margin-top: 0.25rem;
  }

  /* ── SIGN UP PROMPT ── */
  .sign-up-prompt {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}