/********************************************
 PHASE 1 – GLOBAL + NAVIGATION + LANDING (UPDATED)
********************************************/

/* ---------- FONTS ---------- */
@font-face {
  font-family: "Knockout";
  src: url("../font/Knockout-HTF48-Featherweight.otf") format("opentype");
}
@font-face {
  font-family: "Montserrat";
  src: url("../font/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 ;
}

/* ---------- ROOT VARIABLES ---------- */
:root {
  --brand: #ed1a3b;
  --brand-dark: #b91c1c;
  --text: #fff;
  --muted: #9ca3af;
  --bg-gradient: linear-gradient(180deg, #330000, #1a0000 60%, #000);
  --line: #202226;
  --transition: 0.25s ease-in-out;
  --offwhite: #f9f9f9;
  --text-dark: #1a1a1a;
}

/* ---------- GLOBAL RESET ---------- */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  background: var(--bg-gradient);
  color: var(--text);
  scroll-behavior: smooth;
}

img { max-width: 100%; height: auto; vertical-align: middle; }
a { text-decoration: none; color: inherit; transition: opacity var(--transition); }
a:hover { opacity: 0.85; }
ul { list-style: none; margin: 0; padding: 0; }
.main {
  padding-top: 2rem; /* slightly more than nav height to prevent overlap */
  padding-bottom: 3rem;
}

/* ---------- FLASH MESSAGES ---------- */
.message {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 600;
  margin: 12px auto;         /* centers the box horizontally */
  max-width: 600px;          /* limits width */
  width: 100%;               /* allows responsiveness */
  text-align: center;
}
.message.error   { background: #2a1013; color: #ffd2d7; border-color: #44151b; }
.message.success { background: #102a14; color: #c6f7d0; border-color: #1c3b22; }

/* =====================================
   FLASH MESSAGES – MOBILE RESPONSIVE
===================================== */
@media only screen and (max-width: 63.9375rem) {

  .message {
    max-width: 90%;               /* fits within smaller viewports */
    padding: 10px 14px;           /* reduce padding slightly */
    font-size: 0.95rem;           /* slightly smaller text */
    border-radius: 6px;
    margin: 10px auto;
    word-wrap: break-word;        /* prevent overflow on long text */
    box-sizing: border-box;
  }

  .message.error,
  .message.success {
    line-height: 1.4;
  }
}

/* Extra small phones (≤ 480px) */
@media only screen and (max-width: 30rem) {
  .message {
    max-width: 95%;
    font-size: 0.9rem;
    padding: 8px 12px;
    margin: 8px auto;
  }
}

/************** REGISTER **************/
#register {
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 20% 10%, rgba(237,26,59,0.12), transparent),
              linear-gradient(180deg, #000, #060606 60%, #000);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  display: grid;
  place-items: stretch;
}

.grid {
  display: grid;
  grid-template-columns: 40% 60%;
  height: 100vh;
}

/* Left panel */
.brand-pane {
  background: #720a0a;
  border-right: 1px solid #1b1b1b;
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.brand-inner .badge {
  font-family: "Knockout", sans-serif;
  color: #fff;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.brand-inner h1 {
  font-family: "Knockout", sans-serif;
  font-size: 58px;
  color: var(--text);
  margin: 0.5rem 0 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 100;
}

.brand-inner p {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.highlights {
  list-style: none;
  padding: 0;
  margin: 0;
}

.highlights li {
  color: #ffffff;
  border-left: 3px solid var(--brand);
  padding-left: 10px;
  margin-bottom: 0.75rem;
}

/* Decorative stripe */
.brand-pane .stripe {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: var(--brand);
}

/* Right form panel */
.form-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gradient)
}

.form-pane .card {
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #222;
  padding: 3rem 3.5rem;
  width: 700px;
  box-shadow: 0 20px 20px rgba(0, 0, 0, 0.45);
  border-radius: 0;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Card header */
.card-head h2 {
  font-family: "Knockout", sans-serif;
  text-transform: uppercase;
  font-size: 50px;
  color: var(--brand);
  margin: 0 0 8px;
  letter-spacing: 1px;
  font-weight: 100;
}

.card-head .sub {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 1.5rem;
}

.card-head .sub a {
  color: var(--brand);
  text-decoration: none;
  transition: opacity var(--transition);
}
.card-head .sub a:hover { opacity: 0.8; }

/* Form fields */
.field, .row, .col {
  width: 100%;
}

.row {
  display: flex;
  gap: 3rem;
}

.col {
  flex: 1;
}

input[type="email"],
input[type="password"],
input[type="text"], input, select {
  margin-bottom: 1.25rem;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #333;
  background: #111;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  border-radius: 0;
  box-sizing: border-box;
  transition: border var(--transition), background var(--transition);
}

input:focus, select:focus {
  outline: none;
  border-color: var(--brand);
  background: #151515;
}

/* Register button */
.btn {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 12px 36px;
  font-family: "Knockout", sans-serif;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 0;
  transition: background var(--transition), transform var(--transition);
  width: 100%;
}

.btn:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}

label {
  display: block;
  text-align: left;
  font-size: 0.9rem;
  color: #ffffff;
  margin-bottom: 4px;
}

/* Make the date input’s calendar icon white */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1); /* flips black to white */
  cursor: pointer;
}


/* =====================================
   REGISTER PAGE – MOBILE RESPONSIVE
===================================== */
@media only screen and (max-width: 63.9375rem) {

  #register {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg-gradient);
  }

  .grid {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  /* Brand section moves to top */
  .brand-pane {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #222;
    padding: 2.5rem 1.5rem;
    text-align: center;
    align-items: center;
  }

  .brand-inner .badge {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    letter-spacing: 1.5px;
  }

  .brand-inner h1 {
    font-size: clamp(34px, 8vw, 44px);
    margin-bottom: 0.75rem;
    line-height: 1.1;
  }

  .brand-inner p {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    margin-bottom: 1rem;
  }

  .highlights {
    margin: 1rem auto;
    text-align: left;
    max-width: 320px;
  }

  .highlights li {
    font-size: 0.95rem;
    padding-left: 8px;
  }

  .brand-pane .stripe {
    display: none; /* Hide stripe on mobile */
  }

  /* Form panel below */
  .form-pane {
    width: 100%;
    padding: 2rem 1rem;
    background: var(--bg-gradient);
  }

  .form-pane .card {
    width: 100%;
    max-width: 95%;
    margin: 0 auto;
    padding: 2rem 1.25rem;
    border-radius: 0;
  }

  /* Header */
  .card-head h2 {
    font-size: clamp(30px, 7vw, 38px);
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .card-head .sub {
    text-align: center;
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    margin-bottom: 1.25rem;
  }

  /* Fields */
  .row {
    flex-direction: column;
    gap: 1rem;
  }

  input[type="email"],
  input[type="password"],
  input[type="text"],
  input,
  select {
    font-size: 0.95rem;
    padding: 10px 12px;
  }

  /* Register button */
  .btn {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    padding: 10px 16px;
    width: 100%;
  }
}

/* =====================================
   SMALL MOBILE FIX (≤ 480px)
===================================== */
@media only screen and (max-width: 30rem) {

  .brand-pane {
    padding: 1rem 1rem;
  }

  .brand-inner h1 {
    font-size: 30px;
  }

  .brand-inner p {
    font-size: 0.9rem;
  }

  .form-pane .card {
    padding: 1.5rem 1rem;
  }

  .btn {
    font-size: 1.1rem;
    padding: 8px 12px;
  }

  .highlights li {
    font-size: 0.85rem;
  }

    #register,
  .grid,
  .brand-pane,
  .form-pane,
  .form-pane .card {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  /* Ensure form fields never exceed container width */
  input[type="email"],
  input[type="password"],
  input[type="text"],
  input,
  select {
    max-width: 100%;
  }
}
