/* ============================================================
   CSS CUSTOM PROPERTIES (from Figma)
   ============================================================ */
:root {
  /* Colors */
  --text-black:           #191919;
  --text-blue-dark:       #111C3A;
  --text-blue-medium:     #5B6B98;
  --promo-blue-dark:      #004F85;
  --promo-blue-medium:    #0077C8;
  --button-primary:       #0077C8;
  --button-link:          #0077C8;
  --promo-red:            #CA3A3C;
  --alert:                #FF0000;
  --dashboard-bkg:        #EFF1F7;
  --input-outline:        #363F59;
  --card-bg:              #FFFFFF;

  /* Typography */
  --font-roboto:          'Roboto', sans-serif;
  --font-montserrat:      'Montserrat', sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-roboto);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-black);
  background-color: var(--dashboard-bkg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background-color: var(--dashboard-bkg);
  padding: 16px 32px;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
  /* Placeholder style — remove once real logo is inserted */
  background: #EFF1F7;
  min-width: 180px;
  border-radius: 4px;
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.main-layout {
  display: flex;
  flex: 1;
  gap: 32px;
  padding: 32px;
  align-items: flex-start;
}

/* ============================================================
   LEFT COLUMN — Product Cards
   ============================================================ */
.product-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  min-width: 0;
}

/* ============================================================
   CARD
   ============================================================ */
.card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.card-header {
  margin-bottom: 16px;
}

.product-title {
  font-family: var(--font-roboto);
  font-size: 32px;
  font-weight: 600;
  color: var(--promo-blue-dark);
  line-height: normal;
  text-transform: capitalize;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.product-subtitle {
  font-family: var(--font-roboto);
  font-size: 20px;
  font-weight: 900;
  color: var(--promo-blue-medium);
  line-height: normal;
  text-transform: capitalize;
}

.card-body {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.card-image {
  flex-shrink: 0;
  width: 280px;
  height: 200px;
  background: var(--Promo-Prod-BKG, #5B6B98);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  max-width: 75%;
  max-height: 75%;
  object-fit: contain;
  display: block;
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-description {
  font-family: var(--font-roboto);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-black);
  line-height: 1.5;
}

.product-link {
  font-family: var(--font-montserrat);
  font-size: 16px;
  font-weight: 500;
  color: var(--button-link);
  text-decoration: underline;
  text-decoration-style: solid;
  text-underline-offset: auto;
  display: inline-block;
}

.product-link:hover {
  opacity: 0.8;
}

/* Price Row */
.price-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.price {
  font-family: var(--font-roboto);
  font-size: 32px;
  font-weight: 400;
  color: var(--text-black);
  line-height: normal;
}

/* Promo Row */
.promo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.promo-text {
  font-family: var(--font-roboto);
  font-size: 16px;
  font-weight: 700;
  color: var(--promo-red);
  line-height: normal;
  flex: 1;
  min-width: 200px;
}

/* Try Free / Pricing */
.try-free {
  font-family: var(--font-roboto);
  font-size: 16px;
  font-weight: 700;
  color: var(--promo-red);
  line-height: normal;
}

.pricing-info {
  font-family: var(--font-roboto);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-black);
  line-height: 1.6;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  font-family: var(--font-roboto);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  line-height: normal;
  transition: opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.88;
}

/* Primary — Buy Now, Start Free Trial */
.btn-primary {
  display: flex;
  padding: 10px 16px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  background-color: var(--promo-blue-dark);
  color: #FFFFFF;
  white-space: nowrap;
  text-decoration: none;
}

/* Outline — Redeem Now */
.btn-outline {
  display: flex;
  padding: 10px 16px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  border: 1px solid var(--promo-blue-dark);
  background-color: transparent;
  color: var(--promo-blue-dark);
  font-family: var(--font-roboto);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn-outline:hover {
  opacity: 0.8;
}

/* Sign In — full width */
.btn-signin {
  display: flex;
  width: 100%;
  padding: 10px 16px;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  background-color: var(--button-primary);
  color: #FFFFFF;
  font-family: var(--font-montserrat);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s ease;
}

.btn-signin:hover {
  opacity: 0.88;
}

/* Create Account — outline full width */
.btn-create-account {
  display: flex;
  width: 100%;
  padding: 10px 16px;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  border: 1px solid var(--promo-blue-dark);
  background-color: transparent;
  color: var(--promo-blue-dark);
  font-family: var(--font-montserrat);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn-create-account:hover {
  opacity: 0.8;
}

/* ============================================================
   RIGHT COLUMN — Sign In Panel
   ============================================================ */
.signin-column {
  width: 420px;
  flex-shrink: 0;
}

.signin-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.signin-title {
  font-family: var(--font-montserrat);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-blue-dark);
  line-height: normal;
  margin-bottom: 4px;
}

/* ============================================================
   FORM
   ============================================================ */
#login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-roboto);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-black);
  line-height: normal;
}

.input-wrapper {
  display: flex;
  width: 373px;
  height: 40px;
  padding: 8px 16px;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  border: 1px solid var(--input-outline);
  background-color: var(--card-bg);
}

.input-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.form-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-roboto);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-black);
  background: transparent;
}

.form-input::placeholder {
  color: #aab0c2;
}

.error-text {
  font-family: var(--font-montserrat);
  font-size: 16px;
  font-weight: 400;
  color: var(--alert);
  line-height: normal;
}

.input-error {
  border-color: var(--alert);
}

/* ============================================================
   CHECKBOX
   ============================================================ */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--button-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-label {
  font-family: var(--font-montserrat);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-blue-medium);
  line-height: normal;
  cursor: pointer;
}

/* ============================================================
   SIGN IN PANEL — MISC TEXT
   ============================================================ */
.terms-notice {
  font-family: var(--font-roboto);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-black);
  line-height: 1.4;
}

.link-blue {
  font-family: var(--font-montserrat);
  font-size: 16px;
  font-weight: 500;
  color: var(--button-link);
  text-decoration: underline;
  text-decoration-style: solid;
  text-underline-offset: auto;
  display: inline-block;
}

.link-blue:hover {
  opacity: 0.8;
}

.new-account-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.new-account-label {
  font-family: var(--font-montserrat);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-blue-dark);
  line-height: normal;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

/* ============================================================
   PASSWORD RESET STATUS
   ============================================================ */
#pw-status {
  margin-top: 4px;
  text-align: center;
}

.pw-msg {
  display: inline-block;
  padding: 10px 16px;
  font-family: var(--font-roboto);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  line-height: 1.4;
}

.pw-success { background: #d4edda; color: #155724; }
.pw-error   { background: #f8d7da; color: #721c24; }
.pw-info    { background: #d1ecf1; color: #0c5460; }

/* ============================================================
   CREATE ACCOUNT MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  position: relative;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 32px;
  width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--input-outline);
  background: var(--card-bg);
  font-size: 20px;
  color: var(--text-blue-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.modal-close:hover {
  opacity: 0.7;
}

.modal-title {
  font-family: var(--font-montserrat);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-blue-dark);
  line-height: normal;
}

.modal-input-wrapper {
  width: 100%;
}

.btn-continue {
  display: flex;
  width: 100%;
  padding: 10px 16px;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  background-color: var(--button-primary);
  color: #FFFFFF;
  font-family: var(--font-montserrat);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s ease;
}

.btn-continue:hover {
  opacity: 0.88;
}

.modal-description {
  font-family: var(--font-roboto);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-black);
  line-height: 1.5;
}

.modal-signin-text {
  font-family: var(--font-montserrat);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-blue-dark);
  line-height: normal;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  padding: 16px 32px;
  font-family: var(--font-roboto);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-black);
}

/* ============================================================
   RESPONSIVE — basic tablet breakpoint
   ============================================================ */
@media (max-width: 1024px) {
  .main-layout {
    flex-direction: column;
  }

  .signin-column {
    width: 100%;
  }

  .input-wrapper {
    width: 100%;
  }

  .card-body {
    flex-direction: column;
  }

  .card-image {
    width: 100%;
    height: 220px;
  }
}

@media (max-width: 600px) {
  .main-layout {
    padding: 16px;
  }

  .product-title {
    font-size: 24px;
  }

  .price {
    font-size: 24px;
  }
}
