/* =====================================================
   GATISTVAM E-BIKE — MASTER DESIGN SYSTEM
   Login Page CSS (pixel-accurate rebuild)
   This file is the design foundation for every future
   screen (Dashboard, Sales, Purchase, Stock, Customers,
   Reports, etc.) — colors, spacing, radii, shadows and
   typography are all centralized in :root.
===================================================== */

:root{
  /* ---------- Brand colors ---------- */
  --navy:              #14244a;
  --navy-soft:         #1c2e5c;
  --gold:              #f7a821;
  --green:             #2fae4e;

  --blue-600:          #2d6edc;
  --blue-500:          #428ce0;
  --blue-400:          #5fa3ec;
  --blue-300:          #8fc1f5;
  --blue-100:          #deebfc;

  --grad-panel-start:  #e3eefd;
  --grad-panel-mid:    #b9d9f9;
  --grad-panel-end:    #9ecaf6;
  --wave-back:         #c8e1fb;
  --wave-front:        #6fa8ea;

  --grad-btn-start:    #70b4f6;
  --grad-btn-end:      #468ce2;

  /* ---------- Neutrals ---------- */
  --white:             #ffffff;
  --input-bg:          #eef2f8;
  --input-placeholder: #96a0b2;
  --text-muted:        #8c94a6;
  --text-tagline:      #5a6987;
  --checkbox-border:   #c5cede;
  --divider-line:      #e4e8f0;
  --divider-text:      #a3acbe;
  --page-bg-start:     #eef4fc;
  --page-bg-end:       #dfeafc;

  /* ---------- Shape system ---------- */
  --radius-card:        clamp(20px, 2vw, 32px);
  --radius-panel:        clamp(16px, 1.6vw, 26px);
  --radius-field:        clamp(12px, 1vw, 16px);
  --radius-icon:          clamp(9px, 0.8vw, 12px);
  --radius-pill:          999px;

  /* ---------- Shadow system ---------- */
  --shadow-card:    0 30px 70px -20px rgba(30, 60, 120, 0.30);
  --shadow-panel:   0 18px 45px -12px rgba(30, 60, 120, 0.22);
  --shadow-btn:     0 14px 26px -8px rgba(70, 140, 226, 0.55);
  --shadow-logo:    0 12px 24px -6px rgba(20, 50, 110, 0.20);

  /* ---------- Fonts ---------- */
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

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

html{
  height: 100%;
}

body{
  height: 100svh;
  min-height: 100svh;
  font-family: var(--font-body);
  background: linear-gradient(160deg, var(--page-bg-start) 0%, var(--page-bg-end) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

/* ===================== PAGE WRAPPER ===================== */

.page-wrap{
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, min(2.2vw, 3vh), 28px);
}

.login-card{
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 1420px;
  height: min(93svh, 860px);
  min-height: 540px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

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

.left-panel{
  position: relative;
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--grad-panel-start) 0%, var(--grad-panel-mid) 55%, var(--grad-panel-end) 100%);
  overflow: hidden;
  padding: 3% 2%;
  padding-bottom: 8%;
}

.left-panel-content{
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 420px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-title{
  font-family: var(--font-display);
  color: var(--navy-soft);
  font-weight: 700;
  font-size: clamp(19px, 2.15vw, 32px);
  letter-spacing: clamp(1px, 0.15vw, 2.4px);
  line-height: 1.15;
  text-transform: uppercase;
}

.brand-title-cap{
  font-size: 1.7em;
  line-height: 0.6;
  vertical-align: -0.09em;
}

.brand-title-sub{
  display: block;
  font-size: 0.82em;
  letter-spacing: clamp(2px, 0.35vw, 4.5px);
  margin-top: clamp(2px, 0.6vw, 6px);
}

.brand-divider{
  width: clamp(34px, 3.4vw, 50px);
  height: 3px;
  background: var(--blue-500);
  border-radius: var(--radius-pill);
  margin: clamp(12px, 1.6vw, 18px) auto clamp(10px, 1.3vw, 15px);
}

.brand-tagline{
  color: var(--text-tagline);
  font-size: clamp(11.5px, 1.05vw, 15px);
  letter-spacing: 0.5px;
  font-weight: 500;
  margin-bottom: clamp(20px, 3.4vw, 40px);
  white-space: nowrap;
}

.brand-logo-wrap{
  width: clamp(210px, min(27vw, 34vh), 340px);
  height: clamp(210px, min(27vw, 34vh), 340px);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(var(--shadow-logo));
}

.brand-logo{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.register-section{
    margin-top:14px;
    text-align:center;
}

.register-section p{
    margin:0;
    font-size:13px;
    color:#7B8794;
}

.register-link{
    display:inline-block;
    margin-top:5px;
    font-size:14px;
    font-weight:600;
    color:#2F80ED;
    text-decoration:none;
    transition:0.3s;
}

.register-link:hover{
    color:#0A66FF;
    text-decoration:underline;
}

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

.right-panel{
  flex: 1 1 50%;
  max-width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
  margin: clamp(8px, min(1.4vw, 2vh), 18px) clamp(8px, min(1.4vw, 2vh), 18px) clamp(8px, min(1.4vw, 2vh), 18px) 0;
  padding: 15px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.right-panel-content{
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap:8px;
  justify-content:center;
  align-items: center;
}

.form-logo-wrap{
  width: clamp(78px, min(9vw, 12vh), 126px);
  height: clamp(78px, min(9vw, 12vh), 126px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid #e3ecfa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(6px, 0.6vw, 9px);
  margin-bottom: clamp(6px, min(1.4vw, 1.8vh), 18px);
  box-shadow: 0 6px 16px rgba(30, 60, 120, 0.08);
  flex-shrink: 0;
}

.form-logo{
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.welcome-title{
  color: var(--navy);
  font-size: clamp(19px, 1.9vw, 26px);
  font-weight: 700;
  margin-bottom: clamp(3px, min(0.6vw, 0.8vh), 7px);
  text-align: center;
}

.welcome-subtitle{
  color: var(--text-muted);
  font-size: clamp(12.5px, 1vw, 14.5px);
  font-weight: 400;
  margin-bottom: 16px;
  text-align: center;
}

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

.login-form{
  width: 100%;
  display: flex;
  gap:8px;
  flex-direction: column;
}

.input-group{
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: clamp(42px, min(4.6vw, 6.4vh), 58px);
  background: var(--input-bg);
  border: 1.4px solid transparent;
  border-radius: var(--radius-field);
  margin-bottom: clamp(9px, min(1.4vw, 1.9vh), 17px);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.input-group:focus-within{
  border-color: var(--blue-300);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
  background: var(--white);
}

.input-icon{
    position:absolute;
    left:18px;
    top:50%;
    transform:translateY(-50%);

    width:22px;
    height:22px;

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

    pointer-events:none;
}
.input-svg{
    width:20px;
    height:20px;
    display:block;
    object-fit:contain;
    color:#2F80ED;
}

.text-input{
  flex:1;
  min-width:0;
  height:100%;
  border:none;
  background:transparent;
  outline:none;
  padding-left:56px;
    padding-right:50px;
  font-family:inherit;
  font-size:clamp(13px,1vw,14.5px);
  color:var(--navy);
}

.text-input::placeholder{
  color: var(--input-placeholder);
  font-weight: 400;
}

.toggle-password{
  flex: 0 0 auto;
  width: clamp(32px, 3vw, 42px);
  height: clamp(32px, 3vw, 42px);
  margin-right: clamp(4px, 0.5vw, 6px);
  border: none;
  background: transparent;
  color: #a7b0c2;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.toggle-password svg{
  width: 48%;
  height: 48%;
}

.toggle-password.active{
  color: var(--blue-500);
}

/* ===================== ROW: remember / forgot ===================== */

.form-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  margin-top: 2px;
  gap: 10px;
  margin-left: 12px;
  flex-wrap: wrap;
}

.checkbox-wrap{
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.checkbox-wrap input[type="checkbox"]{
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-box{
  width: 17px;
  height: 17px;
  border: 1.6px solid var(--checkbox-border);
  border-radius: 5px;
  margin-right: 8px;
  position: relative;
  flex-shrink: 0;
  transition: background .15s ease, border-color .15s ease;
}

.checkbox-wrap input[type="checkbox"]:checked + .checkbox-box{
  background: var(--blue-500);
  border-color: var(--blue-500);
}

.checkbox-wrap input[type="checkbox"]:checked + .checkbox-box::after{
  content: "";
  position: absolute;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  top: 2px;
  left: 5px;
}

.checkbox-label{
  font-size: clamp(12.5px, 1vw, 13.5px);
  color: #5c6779;
  font-weight: 400;
  white-space: nowrap;
}

.forgot-link{
  font-size: clamp(12.5px, 1vw, 13.5px);
  color: var(--blue-600);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.forgot-link:hover{
  text-decoration: underline;
}

/* ===================== BUTTONS ===================== */

.btn-login{
  width: 100%;
  height: clamp(42px, min(4.6vw, 6.4vh), 58px);
  border: none;
  border-radius: var(--radius-field);
  background: linear-gradient(135deg, var(--grad-btn-start) 0%, var(--grad-btn-end) 100%);
  color: var(--white);
  font-family: inherit;
  font-size: clamp(14px, 1.15vw, 16.5px);
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn-login:hover{
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -8px rgba(70, 140, 226, 0.6);
}

.btn-login:active{
  transform: translateY(0);
}

.btn-login:disabled{
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

.divider-row{
  display: flex;
  align-items: center;
  gap: 12px;
  margin:10px 0 8px 0;  
}

.divider-line{
  flex: 1;
  height: 1px;
  background: var(--divider-line);
}

.divider-text{
  font-size: clamp(12px, 0.9vw, 13px);
  color: var(--divider-text);
}

.btn-security{
  width: 100%;
  height: clamp(42px, min(4.6vw, 6.4vh), 58px);
  border: 1.6px solid var(--blue-500);
  border-radius: var(--radius-field);
  background: var(--white);
  color: var(--blue-500);
  font-family: inherit;
  font-size: clamp(12.5px, 1.05vw, 14.5px);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 0.8vw, 9px);
  cursor: pointer;
  margin-bottom:8px;
  outline: none;
  transition: background .15s ease, color .15s ease;
}

.btn-security:hover{
  background: #eff6ff;
}

.security-icon{
  width: clamp(15px, 1.3vw, 18px);
  height: clamp(15px, 1.3vw, 18px);
  flex-shrink: 0;
}
/* ===================== REGISTER ===================== */

.register-section{
    width:100%;
    margin-top:8px;
    text-align:center;
    flex-shrink:0;
}

.register-title{
    font-size:13px;
    color:#7B8794;
    margin-bottom:5px;
    font-weight:500;
}

.btn-register{
    width:100%;
    height:46px;
    border:1.6px solid #4A90E2;
    border-radius:14px;
    background:#fff;
    color:#2F80ED;
    font-size:14px;
    font-weight:600;
    text-decoration:none;
    outline: none;
    display:flex;
    align-items:center;
    justify-content:center;

    transition:.25s;
}

.btn-register:hover{
    background:#EFF6FF;
    color:#1565D8;
}

/* =====================================================
   RESPONSIVE
===================================================== */

/* Large Desktop (1920x1080 and up) */
@media (min-width: 1921px){
  .login-card{
    max-width: 1560px;
    height: min(84svh, 920px);
  }
}

/* Standard / Small Desktop, 1600x900 */
@media (max-width: 1600px){
  .login-card{
    max-width: 1340px;
    height: min(90svh, 830px);
  }
  .brand-logo-wrap{ width: clamp(200px, 26vw, 320px); height: clamp(200px, 26vw, 320px); }
}

/* Laptop 1366x768 — browser chrome + OS taskbar typically leave only
   ~630-660px of real viewport height at this screen resolution, so this
   tier is tuned against that real usable height, not the raw 768px. */
@media (max-width: 1366px){
  .login-card{
    max-width: 1220px;
    height: min(93vh, 640px);
    min-height: 500px;
  }
  .brand-logo-wrap{ width: clamp(190px, 24vw, 270px); height: clamp(190px, 24vw, 270px); }
}

/* Small laptop / large tablet landscape */
@media (max-width: 1180px){
  .login-card{
    max-width: 990px;
    height: min(90vh, 650px);
  }
  .brand-tagline{ white-space: normal; }
}

/* Tablet landscape */
@media (max-width: 1024px){
  .login-card{
    max-width: 852px;
    height: min(90vh, 630px);
    min-height: 480px;
  }
  .left-panel{ flex-basis: 46%; max-width: 46%; }
  .right-panel{ flex-basis: 54%; max-width: 54%; }
  .brand-logo-wrap{ width: clamp(130px, 23vw, 195px); height: clamp(130px, 23vw, 195px); }
}

/* Tablet portrait / large mobile — stacked layout */
@media (max-width: 820px){
  html, body{ height: auto; overflow-y: auto; overflow-x: hidden; }
  .page-wrap{
    min-height: 100svh;
    height: auto;
    align-items: flex-start;
    padding: clamp(10px, 3vw, 20px);
  }
  .login-card{
    flex-direction: column;
    max-width: 500px;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: auto;
  }
  .left-panel{
    flex: none;
    max-width: 100%;
    width: 100%;
    padding: clamp(28px, 7vw, 40px) 20px clamp(50px, 12vw, 70px);
  }
  .left-panel-content{ max-width: 340px; }
  .brand-logo-wrap{ width: clamp(110px, 26vw, 150px); height: clamp(110px, 26vw, 150px); }
  .wave-wrap{ height: 46%; }
  .right-panel{
    max-width: 100%;
    margin: 0;
    border-radius: 0 0 var(--radius-card) var(--radius-card);
    box-shadow: none;
    padding: clamp(26px, 6vw, 38px) clamp(20px, 5vw, 30px) clamp(30px, 6vw, 40px);
  }
}

/* Mobile */
@media (max-width: 480px){
  .page-wrap{ padding: 0; }
  .login-card{
    border-radius: 0;
    max-width: 100%;
    min-height: 100svh;
    box-shadow: none;
  }
  .left-panel{
    padding: 34px 18px 56px;
  }
  .brand-title{ letter-spacing: 1.2px; }
  .brand-tagline{ margin-bottom: 22px; }
  .brand-logo-wrap{ width: 96px; height: 96px; }
  .right-panel{
    border-radius: 0;
    padding: 28px 20px 32px;
  }
  .right-panel-content{ max-width: 100%; }
  .form-logo-wrap{ width: 72px; height: 72px; }
  .form-row{ gap: 8px; }
}

/* Very small phones */
@media (max-width: 360px){
  .brand-title{ font-size: 17px; }
  .brand-title-sub{ letter-spacing: 2px; }
  .welcome-title{ font-size: 19px; }
  .checkbox-label,
  .forgot-link{ font-size: 12px; }
}

/* Short-height laptops / landscape mobile */
@media (max-height: 700px) and (min-width: 821px){
  .login-card{ height: 94svh; min-height: 460px; }
  .brand-logo-wrap{ width: clamp(100px, 16vw, 150px); height: clamp(100px, 16vw, 150px); }
  .brand-tagline{ margin-bottom: 16px; }
  .form-logo-wrap{ margin-bottom: 8px; }
  .welcome-subtitle{ margin-bottom: 14px; }
}

@media (max-height: 480px) and (max-width: 820px){
  .left-panel{ padding-top: 20px; padding-bottom: 40px; }
  .brand-logo-wrap{ width: 84px; height: 84px; }
  .brand-tagline{ margin-bottom: 14px; }
}
/* ================= PREMIUM TOAST ================= */
.inline-toast{
    position:absolute;
    z-index:9999;

    background:#fff;
    color:#444;

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

    padding:8px 12px;

    border-radius:10px;

    box-shadow:0 8px 20px rgba(0,0,0,.18);

    opacity:0;
    visibility:hidden;

    transition:.25s;

    white-space:nowrap;
}

.inline-toast.show{
    opacity:1;
    visibility:visible;
}