
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');


/* =========================================
   TOPPER21 CUSTOMER LOGIN
   LIGHT AND DARK THEME
========================================= */

:root {
  color-scheme: light;

  --bg: #f7f8fa;
  --left-bg: #eef0f3;

  --surface: #ffffff;
  --surface-2: #f1f3f5;

  --text: #171a1f;
  --muted: #737b86;

  --line: #e2e5e9;

  --accent: #f20d2f;
  --input-bg: #ffffff;

  --glass-bg: rgba(255, 255, 255, .76);

  --shadow:
    0 16px 45px rgba(20, 25, 32, .07);
}


/* DARK THEME */

body.dark {
  color-scheme: dark;

  --bg: #111418;
  --left-bg: #171a1f;

  --surface: #1b2026;
  --surface-2: #222830;

  --text: #f1f3f6;
  --muted: #a0a8b3;

  --line: #343c46;

  --input-bg: #171c22;

  --glass-bg: rgba(42, 45, 51, .9);

  --shadow:
    0 16px 45px rgba(0, 0, 0, .2);
}


/* GLOBAL */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;

  background: var(--bg);
  color: var(--text);

  font-family: "Manrope", Arial, sans-serif;

  transition:
    background .2s ease,
    color .2s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}


/* =========================================
   HEADER
========================================= */

.topbar {
  height: 87px;

  padding: 0 5.7%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  background: var(--accent);
  color: #ffffff;

  border-radius: 12px;

  font: 800 14px "Syne", sans-serif;
}

.brand-name {
  font: 800 20px "Syne", sans-serif;
  letter-spacing: .04em;
}

.brand-name span {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.theme-switch {
  display: flex;
  gap: 3px;

  padding: 4px;

  border-radius: 10px;
  background: var(--surface-2);
}

.theme-btn {
  border: 0;

  padding: 9px 13px;

  border-radius: 7px;

  color: var(--muted);
  background: transparent;

  cursor: pointer;
  font-size: 12px;

  transition: .2s ease;
}

.theme-btn.active {
  background: var(--surface);
  color: var(--text);

  box-shadow: 0 1px 4px #00000012;
}

.back-link {
  font-size: 13px;
  font-weight: 700;
}

.back-link:hover {
  color: var(--accent);
}


/* =========================================
   MAIN LAYOUT
========================================= */

.login-layout {
  min-height: calc(100vh - 87px);

  display: grid;
  grid-template-columns: 1fr 1fr;
}


/* =========================================
   LEFT WELCOME PANEL
========================================= */

.welcome-panel {
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 55px clamp(24px, 5vw, 76px);

  background: var(--left-bg);
}

.glass-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  width: 100%;
  max-width: 730px;

  min-height: 650px;

  padding: clamp(30px, 4vw, 52px);

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  background: var(--glass-bg);

  /* No glass border */
  border: none;

  border-radius: 22px;

  box-shadow: var(--shadow);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  transition:
    background .2s ease,
    box-shadow .2s ease;
}


/* CUSTOMER PORTAL LABEL */

.kicker {
  margin: 0 0 30px;

  color: var(--muted);

  font: 500 12px "DM Mono", monospace;

  letter-spacing: .14em;
}


/* MAIN WELCOME HEADING */

.glass-panel h1 {
  display: block;

  width: 100%;
  max-width: 100%;

  margin: 0;

  color: var(--text);

  font-family: "Manrope", Arial, sans-serif;

  /*
    Responsive heading:
    It scales with the available screen width
    instead of overflowing the glass panel.
  */

  font-size: clamp(38px, 4.2vw, 54px);

  font-weight: 800;

  line-height: 1.08;

  letter-spacing: -.055em;

  overflow-wrap: break-word;
  word-break: normal;
}

.glass-panel h1 span {
  color: var(--accent);
  white-space: nowrap;
}


/* DESCRIPTION */

.intro {
  width: 100%;
  max-width: 440px;

  margin: 25px 0 0;

  color: var(--muted);

  font-size: 15px;
  line-height: 1.8;
}


/* MOTORCYCLE ILLUSTRATION */

.bike {
  display: block;

  width: min(190px, 42%);
  height: auto;

  margin: 35px 5px 0 auto;

  fill: none;

  stroke: #d88d9b;
  stroke-width: 1.5;

  stroke-linecap: round;
  stroke-linejoin: round;

  opacity: .8;
}


/* DECORATIVE BACKGROUND */

.panel-decoration {
  position: absolute;
  z-index: -1;

  right: -15px;
  bottom: -100px;

  color: rgba(100, 105, 115, .045);

  font: 800 220px "Syne", sans-serif;

  letter-spacing: -.1em;

  pointer-events: none;
}

body.dark .panel-decoration {
  color: rgba(255, 255, 255, .035);
}


/* =========================================
   RIGHT LOGIN PANEL
========================================= */

.form-panel {
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 65px 9%;

  background: var(--bg);
}

.login-card {
  width: 100%;
  max-width: 485px;
}


/* LOGIN TITLE */

.eyebrow {
  margin: 0 0 13px;

  color: var(--muted);

  font: 500 11px "DM Mono", monospace;

  letter-spacing: .14em;
}

.login-card h2 {
  margin: 0 0 10px;

  font: 800 38px/1.15 "Syne", sans-serif;

  letter-spacing: -.045em;
}

.form-description {
  margin: 0 0 42px;

  color: var(--muted);

  font-size: 15px;
}


/* =========================================
   FORM FIELDS
========================================= */

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;

  margin-bottom: 10px;

  color: var(--text);

  font-size: 13px;
  font-weight: 700;
}

.form-group input {
  width: 100%;
  height: 57px;

  padding: 0 16px;

  border: 1px solid var(--line);
  border-radius: 10px;

  outline: none;

  background: var(--input-bg);
  color: var(--text);

  font-size: 14px;

  transition:
    border .2s ease,
    box-shadow .2s ease;
}

.form-group input::placeholder {
  color: #9299a3;
}

.form-group input:focus {
  border-color: var(--accent);

  box-shadow:
    0 0 0 3px #f20d2f15;
}


/* PASSWORD */

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 70px;
}

.show-password {
  position: absolute;

  top: 50%;
  right: 15px;

  transform: translateY(-50%);

  border: 0;

  background: transparent;

  color: var(--muted);

  font-size: 12px;
  font-weight: 700;

  cursor: pointer;
}

.show-password:hover {
  color: var(--accent);
}


/* =========================================
   LOGIN BUTTON
========================================= */

.login-btn {
  width: 100%;
  min-height: 60px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 0 20px;

  border: 0;
  border-radius: 9px;

  background: var(--accent);
  color: #ffffff;

  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  transition:
    filter .2s ease,
    transform .2s ease;
}

.login-btn:hover {
  filter: brightness(.94);
  transform: translateY(-1px);
}

.button-arrow {
  font-size: 22px;
}


/* FORM MESSAGE */

.form-message {
  min-height: 18px;

  margin: 12px 0 0;

  color: var(--muted);

  font-size: 12px;
  line-height: 1.5;
}

.form-message.error {
  color: var(--accent);
}

.form-message.success {
  color: #168653;
}


/* =========================================
   OR DIVIDER
========================================= */

.or {
  display: flex;
  align-items: center;

  gap: 14px;

  margin: 28px 0;

  color: var(--muted);

  font-size: 12px;
}

.or span {
  height: 1px;

  flex: 1;

  background: var(--line);
}


/* CREATE ACCOUNT */

.create {
  margin: 0;

  text-align: center;

  color: var(--muted);

  font-size: 13px;
}

.create a {
  color: var(--accent);
  font-weight: 700;
}

.create a:hover {
  text-decoration: underline;
}


/* =========================================
   FOOTER
========================================= */

.login-footer {
  display: flex;
  justify-content: space-between;

  margin-top: 70px;
  padding-top: 20px;

  border-top: 1px solid var(--line);

  color: var(--muted);

  font: 10px "DM Mono", monospace;

  letter-spacing: .08em;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1050px) {

  .welcome-panel {
    padding: 45px 6%;
  }

  .glass-panel {
    min-height: 560px;
    padding: 35px;
  }

  .glass-panel h1 {
    font-size: clamp(36px, 5vw, 52px);
  }

  .intro {
    font-size: 14px;
  }

  .form-panel {
    padding: 45px 7%;
  }

  .login-card h2 {
    font-size: 34px;
  }

  .form-description {
    margin-bottom: 32px;
  }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 760px) {

  .topbar {
    height: 70px;
    padding: 0 20px;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
  }

  .brand-name {
    font-size: 17px;
  }

  .header-actions {
    gap: 10px;
  }

  .back-link {
    display: none;
  }

  .login-layout {
    min-height: calc(100vh - 70px);
    display: block;
  }

  .welcome-panel {
    padding: 30px 20px;
  }

  .glass-panel {
    min-height: auto;
    padding: 30px;
  }

  .kicker {
    margin-bottom: 22px;
  }

  .glass-panel h1 {
    font-size: clamp(36px, 9vw, 52px);
    line-height: 1.08;
  }

  .intro {
    margin-top: 20px;
    font-size: 13px;
  }

  .bike {
    width: 135px;
    margin-top: 20px;
  }

  .form-panel {
    min-height: 570px;

    padding: 45px 25px;

    align-items: flex-start;
  }

  .login-card {
    max-width: 500px;
    margin: 0 auto;
  }

  .login-card h2 {
    font-size: 31px;
  }

  .login-footer {
    margin-top: 45px;
  }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 420px) {

  .topbar {
    padding: 0 14px;
  }

  .theme-btn {
    padding: 8px;
    font-size: 10px;
  }

  .glass-panel {
    padding: 24px;
  }

  .glass-panel h1 {
    font-size: clamp(32px, 9vw, 40px);
  }

  .intro {
    font-size: 13px;
  }

  .form-panel {
    padding: 40px 20px;
  }

  .form-group input {
    height: 50px;
  }

  .login-btn {
    min-height: 52px;
  }
}


/* =========================================
   OFFICIAL TOPPER21 LOGO — SHARED OVERRIDE
   Uses the supplied transparent PNG asset.
========================================= */

.topper21-logo {
  display: block;
  width: 112px;
  height: auto;
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
  object-position: left center;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Admin sidebar logo */
.sidebar .brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 10px 12px;
  background: transparent;
}

.sidebar-topper-logo {
  width: 112px;
  max-height: 58px;
  object-position: center;
}

/* Customer and booking header logos */
.topbar > .brand .topper21-logo,
.navbar > .brand .topper21-logo,
.navbar > .logo .topper21-logo,
.topbar > .logo .topper21-logo,
.topbar > .brand-mark .topper21-logo {
  width: 104px;
  max-height: 48px;
}

/* Signup welcome panel logo */
.welcome-section .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.welcome-section .logo .topper21-logo {
  width: 112px;
  max-height: 58px;
  object-position: center;
}

/* Admin login header and login-card logo */
.admin-login .topbar .topper21-logo,
.topbar .brand-mark .topper21-logo,
.mobile-brand .topper21-logo {
  width: 112px;
  max-height: 56px;
}

/* Keep logo clear on light and dark headers */
body.dark .topper21-logo,
body.dark .sidebar-topper-logo {
  background: transparent !important;
}

/* Smaller screens */
@media (max-width: 600px) {
  .topper21-logo {
    width: 88px;
    max-height: 46px;
  }

  .sidebar-topper-logo {
    width: 94px;
    max-height: 50px;
  }
}

/* Consistent compact typography across TOPPER21 pages */
html, body, button, input, select, textarea {
    font-family: "Manrope", Arial, sans-serif;
}
