/* ROOT TOKENS */
:root {
  --primary: #CC2230;
  --black: #000;
  --white: #fff;
  --gray-dark: #2E2E2E;
  --gray-light: #F5F5F5;
  --gray-50: #FAFAFA;
  --border: #E0E0E0;

  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;

  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow: 0px 4px 12px rgba(0,0,0,0.05);

  --font-primary: "Helvetica Now Display", sans-serif;
  --font-secondary: "Poppins", sans-serif;
}

/* GLOBAL */
* { box-sizing: border-box; }
body {
  font-family: var(--font-secondary);
  margin: 0;
  background: white;
  color: var(--gray-dark);
}

/* TYPOGRAPHY */
.h1 { font-size: 36px; font-weight: 700; }
.h2 { font-size: 24px; font-weight: 600; }
.h3 { font-size: 18px; font-weight: 500; }
.body { font-size: 16px; }

/* NAVBAR */

/* HERO */
.hero {
  text-align: center;
  padding: 60px 20px;
}

/* CONTAINER */
.container,
.header-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-lg);
}

/* CARD */
.card {
  background: var(--white);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: var(--space-lg);
}

/* BUTTONS */
.btn {
  padding: 10px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  margin: 5px;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: none;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--black);
}

.full {
  width: 100%;
}

/* INPUT */
.input,
input.input,
select.input,
textarea.input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-family: var(--font-secondary);
}

.input:focus,
input.input:focus,
select.input:focus,
textarea.input:focus {
  border-color: var(--primary);
  outline: none;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
}

.modal-content {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius-lg);
  width: 300px;
  margin: 15% auto;
  text-align: center;
}

/* Shared storefront helpers */
.error {
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
  padding: 11px 12px;
  border-radius: var(--radius-md);
}

.login-layout{
  min-height:100vh;
  display:grid;
  grid-template-columns: 1.1fr 1fr;
}

.brand-panel{
  padding:64px 56px;
  color:#f8fafc;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  border-right:1px solid rgba(255,255,255,.12);
}

.brand-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.25);
  border-radius:999px;
}

.brand-panel h1{
  font-family: "Times New Roman", serif;
  font-size:56px;
  line-height:1.06;
  margin:20px 0 14px;
}

.brand-panel p{
  max-width:440px;
  color:rgba(248,250,252,.82);
  line-height:1.75;
}

.brand-note{
  font-size:13px;
  opacity:.75;
}

.form-panel{
  display:flex;
  justify-content:center;
  align-items:center;
  padding:40px 24px;
}

.login-card{
  width:min(440px, 100%);
  background:#ffffff;
  border-radius:18px;
  border:1px solid #e2e8f0;
  box-shadow:0 20px 50px rgba(2,6,23,.18);
  padding:34px 30px;
}

.login-title{
  margin:0 0 8px;
  font-size:28px;
  font-family:"Times New Roman", serif;
  color:#0f172a;
}

.login-subtitle{
  margin:0 0 20px;
  color:#64748b;
  font-size:14px;
}

.error{
  background:#fff1f2;
  color:#9f1239;
  border:1px solid #fecdd3;
  padding:11px 12px;
  border-radius:12px;
  margin-bottom:14px;
  font-size:14px;
}

.field{ margin-bottom:14px; }
.field label{
  display:block;
  margin-bottom:7px;
  font-size:13px;
  font-weight:600;
  color:#334155;
}

.input-wrap{ position:relative; }
.input-wrap input{
  width:100%;
  border:1px solid #cbd5e1;
  border-radius:12px;
  padding:12px 14px;
  font-size:15px;
  background:#f8fafc;
  transition:all .18s ease;
}

.input-wrap input:focus{
  outline:none;
  border-color:#2563eb;
  background:#fff;
  box-shadow:0 0 0 4px rgba(37,99,235,.12);
}

.toggle{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  border:0;
  background:transparent;
  color:#475569;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
}

.login-btn{
  width:100%;
  margin-top:6px;
  border:0;
  border-radius:12px;
  padding:13px;
  background: var(--primary);
  color:#fff;
  font-weight:600;
  font-size:15px;
  cursor:pointer;
}
.login-btn:disabled{opacity:.75; cursor:not-allowed;}

.signin-foot{
  margin-top:16px;
  text-align:center;
  color:#64748b;
  font-size:13px;
}
.signin-foot a{
  color:#1d4ed8;
  text-decoration:none;
  font-weight:600;
}

@media (max-width: 980px){
  .login-layout{ grid-template-columns:1fr; }
  .brand-panel{
    padding:30px 24px 20px;
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.12);
  }
  .brand-panel h1{ font-size:34px; }
}