/********************************************
 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: 6px;
  border: 1px solid var(--line);
  font-weight: 600;
  margin: 12px 0 20px 0;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.login-card .message {
  max-width: 100%;
  margin: 0 0 20px 0; /* keep inside card */
}

.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: 64rem) {

  .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;
  }
}


/********************************************
 PHASE 3 – FINAL LOGIN 
********************************************/

/********************************************
 PHASE 3 – FINAL LOGIN (Refined & Responsive)
********************************************/

/************** LOGIN **************/
#login {
  min-height: 80vh;
  display: grid;
  place-items: center;
  background: var(--bg-gradient);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  padding: 40px 16px;
}

.login-container {
  width: 100%;
  max-width: 450px;
}

.login-card {
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--line);
  padding: 40px 36px;
  box-shadow: 0 20px 20px rgba(0, 0, 0, 0.45);
  border-radius: 0;
  width: 100%;
  box-sizing: border-box;
}

/************** HEADER **************/
.login-header h1 {
  font-family: "Knockout", sans-serif;
  letter-spacing: 1.5px;
  font-size: 60px;
  color: var(--brand);
  margin: 0 0 4px 0;
  text-align: center;
}

.login-header .sub {
  text-align: center;
  font-size: 20px;
  color: #fff;
  margin-bottom: 24px;
}

/************** FORM **************/
fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

label {
  display: block;
  text-align: left;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 6px;
  font-weight: 500;
}

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

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

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

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

/************** LINKS **************/
.link {
  display: inline-block;
  margin-top: 12px;
  color: var(--brand);
  text-decoration: none;
  transition: opacity var(--transition);
}
.link:hover { opacity: 0.8; }

.divider {
  border: none;
  border-top: 1px solid #333;
  margin: 2rem 0;
}

.btn-outline {
  display: inline-block;
  background: none;
  border: 1px solid var(--brand);
  color: var(--brand);
  padding: 10px 28px;
  font-family: "Knockout", sans-serif;
  text-transform: uppercase;
  font-size: 1.4rem;
  letter-spacing: 1px;
  border-radius: 0;
  transition: all var(--transition);
}

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

.alt-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

/************** RESPONSIVE DESIGN **************/
@media only screen and (max-width: 64rem) {
  .login-card {
    padding: 32px 24px;
  }

  .login-header h1 {
    font-size: clamp(36px, 9vw, 48px);
    margin-bottom: 8px;
  }

  .login-header .sub {
    font-size: clamp(16px, 4vw, 18px);
  }

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

  .btn.login {
    font-size: clamp(1.2rem, 4.5vw, 1.4rem);
    padding: 12px 20px;
  }

  .btn-outline {
    font-size: clamp(1rem, 4vw, 1.2rem);
    padding: 8px 18px;
  }

  .message {
    font-size: 0.9rem;
    padding: 10px 14px;
  }
}

@media only screen and (max-width: 30rem) {
  .login-card {
    padding: 24px 16px;
  }

  .login-header h1 {
    font-size: 32px;
    letter-spacing: 1px;
  }

  .login-header .sub {
    font-size: 15px;
    margin-bottom: 1rem;
  }

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

  .btn.login {
    font-size: 1.2rem;
    padding: 8px 14px;
  }

  .message {
    font-size: 0.85rem;
    margin-bottom: 16px;
  }
}
