/* =====================================================
   GATISTVAM E-BIKE — Register Branch Page
   Reuses the exact design tokens and component styles
   defined in login.css (the master design system).
   No left panel — single centered white card, two-column
   responsive form.
===================================================== */

:root{
  /* ---------- Brand colors (identical to login.css) ---------- */
  --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-btn-start:    #70b4f6;
  --grad-btn-end:      #468ce2;

  /* ---------- Neutrals (identical to login.css) ---------- */
  --white:             #ffffff;
  --input-bg:          #eef2f8;
  --input-placeholder: #96a0b2;
  --text-muted:        #8c94a6;
  --divider-line:      #e4e8f0;
  --divider-text:      #a3acbe;
  --page-bg-start:     #eef4fc;
  --page-bg-end:       #dfeafc;

  /* ---------- Shape system (identical to login.css) ---------- */
  --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 (identical to login.css) ---------- */
  --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 (identical to login.css) ---------- */
  --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);
}

.register-card{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 980px;
  height: min(93svh, 800px);
  min-height: 500px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.register-card-content{
  width: 100%;
  height: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(14px, min(2.4vw, 3.2vh), 30px) clamp(16px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  scrollbar-width: thin;
}

/* ===================== TOP LOGO (identical style to login.css) ===================== */

.form-logo-wrap{
  width: clamp(66px, min(7.4vw, 9.6vh), 100px);
  height: clamp(66px, min(7.4vw, 9.6vh), 100px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid #e3ecfa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(5px, 0.6vw, 8px);
  margin-bottom: clamp(6px, min(1.2vw, 1.5vh), 14px);
  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;
}

/* ===================== HEADING (identical style to login.css) ===================== */

.welcome-title{
  color: var(--navy);
  font-size: clamp(18px, 1.8vw, 25px);
  font-weight: 700;
  margin-bottom: clamp(3px, min(0.6vw, 0.8vh), 6px);
  text-align: center;
}

.welcome-subtitle{
  color: var(--text-muted);
  font-size: clamp(12px, 0.95vw, 14px);
  font-weight: 400;
  margin-bottom: clamp(10px, min(1.8vw, 2.2vh), 20px);
  text-align: center;
}

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

.register-form{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-grid{
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(10px, 1.6vw, 18px);
  row-gap: 0;
}

.full-width{
  grid-column: 1 / -1;
}

/* ===================== INPUTS (identical style to login.css) ===================== */

.input-group{
  position: relative;
   display:flex;
    align-items:center;
    padding:0 10px;
  width: 100%;
  height: clamp(40px, min(4.4vw, 6vh), 54px);
  background: var(--input-bg);
  border: 1.4px solid transparent;
  border-radius: var(--radius-field);
  margin-bottom: clamp(8px, min(1.3vw, 1.7vh), 15px);
  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{
    width:42px;
    min-width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-left:8px;
}

.input-svg{
    width:19px;
    height:19px;
    object-fit:contain;
    display:block;
}

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

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

.toggle-password{
  flex: 0 0 auto;
  width: clamp(30px, 2.8vw, 40px);
  height: clamp(30px, 2.8vw, 40px);
  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);
}

/* ---------- Textarea variant (Branch Address) ---------- */

.textarea-group{
  height: auto;
  min-height: clamp(64px, min(6.6vw, 9vh), 84px);
  align-items: stretch;
}

.input-icon-top{
  align-self: flex-start;
  margin-top: clamp(5px, 0.6vw, 8px);
}

.textarea-input{
  resize: none;
  padding: clamp(9px, 1vw, 13px) clamp(8px, 1vw, 14px);
  line-height: 1.4;
  font-family: inherit;
}

/* ===================== BUTTON (identical to login.css .btn-login) ===================== */

.btn-login{
  width: 100%;
  height: clamp(40px, min(4.4vw, 6vh), 54px);
  border: none;
  border-radius: var(--radius-field);
  background: linear-gradient(135deg, var(--grad-btn-start) 0%, var(--grad-btn-end) 100%);
  color: var(--white);
  outline: none;
  font-family: inherit;
  font-size: clamp(13.5px, 1.1vw, 16px);
  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);
  outline: none;
}

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

.btn-register{
  margin-top: clamp(2px, min(0.8vw, 1vh), 8px);
  outline: none;
    border: 1.6px solid #4A90E2;
}

/* ===================== LOGIN HINT ===================== */

.login-hint{
  margin-top: clamp(10px, min(1.8vw, 2.2vh), 18px);
  font-size: clamp(12.5px, 0.95vw, 13.5px);
  color: var(--text-muted);
  text-align: center;
}

.login-link{
  color: var(--blue-600);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

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

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

/* Large Desktop 1920x1080+ */
@media (min-width: 1921px){
  .register-card{
    max-width: 1100px;
    height: min(84svh, 860px);
  }
}

/* 1600x900 */
@media (max-width: 1600px){
  .register-card{
    max-width: 940px;
    height: min(90svh, 780px);
  }
}

/* 1536x864 / 1440x900 */
@media (max-width: 1536px){
  .register-card{
    max-width: 900px;
    height: min(91vh, 740px);
  }
}

/* Laptop 1366x768 — tuned against real ~640px usable browser viewport */
@media (max-width: 1366px){
  .register-card{
    max-width: 860px;
    height: min(93vh, 630px);
    min-height: 480px;
  }
  .form-logo-wrap{
    width: clamp(56px, min(6.6vw, 8.6vh), 84px);
    height: clamp(56px, min(6.6vw, 8.6vh), 84px);
  }
}

/* 1280x720 small laptop */
@media (max-width: 1280px){
  .register-card{
    max-width: 800px;
    height: min(93vh, 600px);
  }
}

/* Tablet landscape / 1024 */
@media (max-width: 1024px){
  html, body{ height: auto; overflow-y: auto; overflow-x: hidden; }
  .page-wrap{
    min-height: 100svh;
    height: auto;
    align-items: flex-start;
    padding: clamp(14px, 3vw, 24px);
  }
  .register-card{
    height: auto;
    min-height: 0;
    max-width: 640px;
  }
  .register-card-content{
    height: auto;
    overflow-y: visible;
    padding: clamp(20px, 4vw, 32px) clamp(18px, 4vw, 28px);
  }
}

/* Tablet portrait / 768 — collapse to single column */
@media (max-width: 820px){
  .form-grid{
    grid-template-columns: 1fr;
  }
  .form-logo-wrap{ width: 76px; height: 76px; }
}

/* Mobile */
@media (max-width: 480px){
  .page-wrap{ padding: 0; }
  .register-card{
    border-radius: 0;
    max-width: 100%;
    box-shadow: none;
  }
  .register-card-content{
    padding: 28px 20px 34px;
  }
  .welcome-title{ font-size: 20px; }
  .input-group{ height: 48px; }
  .btn-login{ height: 48px; font-size: 14.5px; }
}

/* Very small phones */
@media (max-width: 360px){
  .welcome-title{ font-size: 18px; }
  .welcome-subtitle{ font-size: 12px; }
}
/* ================= 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;
}