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


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --background: #f5f6f8;
    --card: #ffffff;
    --text: #222329;
    --muted: #777b84;
    --border: #e3e5e9;
    --red: #ff1238;
}

body {
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: "Manrope", Arial, sans-serif;
    transition: background .25s, color .25s;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .4;
    background: repeating-linear-gradient(
        135deg,
        transparent 0 48px,
        rgba(255, 18, 56, .06) 49px,
        transparent 50px 96px
    );
}

/* HEADER */

.topbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 65px;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

.top-back {
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
}

.theme-switch {
    display: flex;
    padding: 3px;
    gap: 3px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 7px;
}

.theme-btn {
    padding: 7px 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    border-radius: 5px;
    cursor: pointer;
    font-size: 10px;
}

.theme-btn.active {
    color: var(--red);
    background: #fff5f7;
    border-color: #ff9aab;
}

/* MAIN LAYOUT */

.signup-container {
    position: relative;
    min-height: 100vh;
    max-width: 1440px;
    margin: auto;
    padding: 85px clamp(25px, 7vw, 100px) 40px;

    display: grid;
    grid-template-columns: minmax(260px, .8fr)
                           minmax(420px, 1.2fr);

    align-items: center;
    gap: clamp(35px, 7vw, 100px);
}

/* WELCOME SECTION */

.welcome-section {
    max-width: 440px;
}

.logo {
    width: 42px;
    height: 32px;
    margin-bottom: 25px;

    display: grid;
    place-items: center;

    color: #cf3b2e;
    border: 2px solid #cf3b2e;
    border-radius: 50%;

    font-size: 10px;
    font-weight: 900;
    transform: skew(-9deg);
}

.eyebrow {
    color: var(--red);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.welcome-section h1 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.welcome-section h1 span {
    font-size: .65em;
}

.description {
    max-width: 360px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.motorcycle {
    width: 240px;
    margin: 45px 0 0 auto;
}

.motorcycle svg {
    width: 100%;
    fill: none;
    stroke: #a5abb5;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* SIGNUP CARD */

.signup-card {
    position: relative;
    width: 100%;
    max-width: 660px;
    justify-self: center;

    padding: 30px;
    background: var(--card);

    border: 1px solid #ff5570;
    box-shadow: 0 5px 18px rgba(24, 28, 38, .05);
}

.red-accent {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    height: 3px;
    background: var(--red);
    border-radius: 4px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.back-button {
    padding: 7px 11px;
    text-decoration: none;
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 10px;
}

.card-title {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1.5px;
}

/* FORM */

form {
    display: flex;
    flex-direction: column;
}

form label {
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 1.3px;
}

form input {
    width: 100%;
    height: 40px;
    margin-bottom: 15px;
    padding: 0 12px;

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

    border: 1px solid var(--border);
    border-radius: 7px;
    outline: none;

    font-size: 12px;
}

form input:focus {
    border-color: #ff758b;
    box-shadow: 0 0 0 3px rgba(255, 18, 56, .07);
}

form input::placeholder {
    color: #a0a3aa;
}

/* PHONE AND OTP */

.phone-group {
    display: flex;
    gap: 9px;
}

.phone-group input {
    flex: 1;
    min-width: 0;
}

#sendOtp {
    height: 40px;
    margin-bottom: 15px;
    padding: 0 15px;

    color: var(--red);
    background: #fff8f9;

    border: 1px solid #ffd0d8;
    border-radius: 7px;

    font-size: 10px;
    cursor: pointer;
}

#sendOtp:hover {
    background: #ffe9ed;
}

/* CREATE ACCOUNT */

.create-button {
    height: 42px;
    margin-top: 3px;

    color: white;
    background: var(--red);

    border: none;
    border-radius: 6px;

    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.create-button:hover {
    background: #e90d31;
}

/* FOOTER */

.signin-text {
    margin-top: 19px;
    text-align: center;
    color: var(--muted);
    font-size: 11px;
}

.signin-text a {
    color: var(--red);
    text-decoration: none;
    font-weight: bold;
}

.message {
    min-height: 14px;
    margin-top: 10px;
    text-align: center;
    color: var(--red);
    font-size: 10px;
}

/* DARK MODE */


body.dark {
    --background: #17181c;
    --card: #22242a;
    --text: #f1f1f3;
    --muted: #aeb1ba;
    --border: #3a3d45;
}

body.dark .theme-btn.active {
    color: white;
    background: #383a42;
    border-color: #666a75;
}

body.dark .motorcycle svg {
    stroke: #737987;
}

body.dark #sendOtp {
    background: #302329;
    border-color: #66313c;
    color: #ff7189;
}

/* RESPONSIVE */

@media (max-width: 800px) {
    .signup-container {
        grid-template-columns: 1fr;
        padding: 90px 22px 35px;
        gap: 30px;
    }

    .welcome-section {
        max-width: 560px;
    }

    .motorcycle {
        display: none;
    }

    .signup-card {
        max-width: 620px;
    }
}

@media (max-width: 480px) {
    .signup-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .signup-card {
        padding: 25px 18px;
    }

    .phone-group {
        gap: 6px;
    }

    #sendOtp {
        padding: 0 9px;
    }
}

/* ===== TOPPER21 layout refinement: responsive fit and overflow safety ===== */
html {
  max-width: 100%;
  overflow-x: clip;
}

body {
  max-width: 100%;
  overflow-x: clip;
}

img, svg, video, canvas, iframe {
  max-width: 100%;
}

input, select, textarea, button {
  max-width: 100%;
}

main, section, article, header, footer, nav, aside,
.page-content, .page-shell, .main-content, .content,
.layout, .app-shell, .main-area {
  min-width: 0;
}

table {
  max-width: 100%;
}

@media (max-width: 760px) {
  .page-content,
  .page-shell,
  .main-content,
  .content {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .card, .panel, .section, .form-card, .login-card {
    max-width: 100%;
  }

  .two-column,
  .two-columns,
  .content-grid,
  .dashboard-grid {
    min-width: 0;
  }
}

@media (max-width: 420px) {
  input, select, textarea {
    min-width: 0;
  }

  .page-content,
  .page-shell {
    padding-left: 14px;
    padding-right: 14px;
  }
}
/* ===== End layout refinement ===== */


/* ===== TOPPER21 balanced customer-page readability ===== */
@media (min-width: 1100px) {
  .main-content {
    max-width: 1120px;
  }

  .page-shell {
    max-width: 1180px;
  }
}

body {
  font-size: 14px;
}

label {
  line-height: 1.45;
}

input,
select,
textarea,
button {
  font-size: 13px;
}

input,
select,
textarea {
  min-height: 38px;
}

@media (max-width: 760px) {
  .main-content,
  .page-shell {
    width: 100%;
    max-width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 420px) {
  .main-content,
  .page-shell {
    padding-left: 13px;
    padding-right: 13px;
  }
}
/* ===== End customer-page readability ===== */




/* =========================================================
   TOPPER21 unified dark theme
   Matches the supplied dark-mode references across screens.
   ========================================================= */
body.dark {
  color-scheme: dark;

  --page: #111418;
  --background: #111418;
  --bg: #111418;
  --page-bg: #111418;

  --surface: #1b2026;
  --surface-2: #222830;
  --surface-soft: #252c34;
  --card: #1b2026;
  --field: #171c22;
  --input: #171c22;
  --input-bg: #171c22;

  --text: #f1f3f6;
  --ink: #f1f3f6;
  --header-text: #f1f3f6;
  --muted: #a0a8b3;
  --muted-dark: #c0c6cf;

  --border: #343c46;
  --line: #343c46;
  --shadow: 0 4px 18px rgba(0, 0, 0, .22);

  --soft-red: #3a2028;
  --accent-soft: #3a2028;
  --red-soft: #3a2028;
  --subtle: #3a2028;
}

body.dark body {
  background-color: #111418;
  color: #f1f3f6;
}

body.dark .sidebar,
body.dark .topbar,
body.dark header,
body.dark .site-header {
  background-color: #191e24;
  border-color: #343c46;
  color: #f1f3f6;
}

body.dark .settings-card,
body.dark .stat-card,
body.dark .card,
body.dark .panel,
body.dark .table-card,
body.dark .table-wrap,
body.dark .table-container,
body.dark .diagnostic-card,
body.dark .queue-card,
body.dark .mechanic-card,
body.dark .logic-card,
body.dark .booking-card,
body.dark .form-card,
body.dark .auth-card,
body.dark .modal-content,
body.dark .modal-card,
body.dark .dialog,
body.dark .confirmation-card,
body.dark .result-card {
  background-color: #1f252c;
  color: #f1f3f6;
  border-color: #343c46;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .20);
}

body.dark input,
body.dark select,
body.dark textarea,
body.dark .form-control {
  color: #f1f3f6;
  background-color: #171c22;
  border-color: #3a424d;
}

body.dark input::placeholder,
body.dark textarea::placeholder {
  color: #87919e;
}

body.dark table,
body.dark thead,
body.dark tbody,
body.dark tr,
body.dark th,
body.dark td {
  color: #dce1e7;
  border-color: #343c46;
}

body.dark thead th,
body.dark .table-head,
body.dark .table-header {
  background-color: #252c34;
  color: #aeb7c2;
}

body.dark .nav-link:not(.active):hover,
body.dark .theme-btn:not(.active):hover {
  background-color: #252c34;
  color: #f1f3f6;
}

body.dark .nav-link.active {
  background-color: #f20d35;
  color: #ffffff;
}

body.dark .theme-switch {
  background-color: #20262d;
  border-color: #3a424d;
}

body.dark .theme-btn.active {
  background-color: #2b323b;
  color: #ffffff;
}

body.dark .page-heading p,
body.dark .field-hint,
body.dark .muted,
body.dark .subtitle {
  color: #a0a8b3;
}

body.dark .day-option span {
  background-color: #171c22;
  color: #bfc6cf;
  border-color: #3a424d;
}

body.dark .day-option input:checked + span {
  background-color: #3a2028;
  color: #ff6b83;
  border-color: #f20d35;
}

body.dark .btn-secondary,
body.dark .secondary-btn {
  background-color: #252c34;
  color: #e5e9ee;
  border-color: #414a56;
}

body.dark .divider,
body.dark hr {
  border-color: #343c46;
}


/* =========================================
   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;
}
