/* =========================================================
   BeGO - AUTH
   registro.css
   DISEÑO OFICIAL
   Negro / Blanco / Gris
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {

  --bg: #000000;
  --bg-soft: #080808;

  --panel: #050505;
  --panel-soft: #0a0a0a;

  --border: rgba(255, 255, 255, 0.14);
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.28);

  --text: #ffffff;
  --text-soft: #b5b5b5;
  --text-muted: #777777;

  --white: #ffffff;
  --black: #000000;

  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow:
    0 30px 90px rgba(0, 0, 0, 0.55);
}


/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;

  background: var(--bg);

  color: var(--text);

  font-family:
    Inter,
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  text-rendering: optimizeLegibility;
}


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

/* =========================================================
   PAGE
   LOGO BEGO EN BACKGROUND
========================================================= */

.auth-page {

  position: relative;

  width: 100%;
  min-height: 100vh;

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

  padding:
    60px
    24px
    70px;

  overflow: hidden;

  background:
    #000000;
}


/* =========================================================
   LOGO GIGANTE EN BACKGROUND
========================================================= */

.auth-page::before {

  content: "";

  position: absolute;

  top: 50%;
  left: 50%;

  width: min(900px, 100vw);
  height: min(900px, 100vw);

  transform:
    translate(-50%, -50%);

  background-image:
    url("../img/bego-login.png");

  background-repeat:
    no-repeat;

  background-position:
    center;

  background-size:
    contain;

  filter:
    grayscale(1);

  pointer-events:
    none;

  z-index:
    0;
}


/* =========================================================
   SUAVE ILUMINACIÓN DEL BACKGROUND
========================================================= */

.auth-page::after {

  content: "";

  position: absolute;

  inset: 0;

  background:
    radial-gradient(
      circle at center,
      transparent 0%,
      rgba(0, 0, 0, 0.18) 45%,
      rgba(0, 0, 0, 0.72) 100%
    );

  pointer-events:
    none;

  z-index:
    1;
}


/* =========================================================
   MAIN SHELL
========================================================= */

.auth-shell {

  position: relative;

  z-index: 2;

  width: min(560px, 100%);

  margin: 0 auto;

  border:
    1px solid
    rgba(255, 255, 255, 0.12);

  border-radius:
    var(--radius-xl);

  background:
    #050505;

  box-shadow:
    var(--shadow);

  overflow: hidden;
}


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

.auth-panel {

  position: relative;

  width: 100%;

  padding:
    58px
    48px
    48px;

  background:
    #050505;

  overflow: hidden;
}


/* =========================================================
   PANEL LIGHT
========================================================= */

.auth-panel::before {

  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 1px;

  background:
    rgba(255, 255, 255, 0.22);

  pointer-events: none;
}


/* =========================================================
   CONTAINER
========================================================= */

.auth-container {

  position: relative;

  z-index: 2;

  width: 100%;
}


/* =========================================================
   LOGIN BRAND / LOGO
========================================================= */

.login-brand {

  display: flex;

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

  width: 100%;

  margin:
    0 auto
    48px;

  padding: 0;

  overflow: visible;
}

.login-logo {

  display: block;

  width:
    min(300px, 82%);

  height: auto;

  max-height: 130px;

  object-fit: contain;

  object-position: center;

  filter: none;

  user-select: none;

  -webkit-user-drag: none;
}


/* =========================================================
   CONTROL DE PANTALLAS
========================================================= */

.auth-box {

  position: relative;

  width: 100%;
}


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

.auth-box.login {
  display: none;
}

.auth-box.login.active {
  display: block;
}


/* =========================================================
   REGISTRO
========================================================= */

.auth-box.registro {

  display: none;

  margin-top: 0;

  padding: 0;

  border: 0;

  border-radius: 0;

  background: transparent;

  box-shadow: none;
}

.auth-box.registro.active {
  display: block;
}


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

.field {

  display: block;

  width: 100%;

  margin:
    0 0
    24px;

  color: var(--text);
}

.field > span:first-child {

  display: block;

  margin:
    0 0
    10px;

  color:
    rgba(255, 255, 255, 0.78);

  font-size: 13px;

  line-height: 1.2;

  font-weight: 500;

  letter-spacing: 0.01em;
}


/* =========================================================
   INPUT WRAPPER
========================================================= */

.input-wrap {

  position: relative;

  width: 100%;
}

.input-icon {

  position: absolute;

  left: 18px;
  top: 50%;

  width: 22px;
  height: 22px;

  transform:
    translateY(-50%);

  display: flex;

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

  color:
    rgba(255, 255, 255, 0.72);

  pointer-events: none;

  z-index: 2;
}

.input-icon svg {

  width: 21px;
  height: 21px;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.5;

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


/* =========================================================
   INPUTS
========================================================= */

.field input {

  width: 100%;

  height: 58px;

  border:
    1px solid
    rgba(255, 255, 255, 0.14);

  border-radius:
    var(--radius-md);

  outline: none;

  background:
    #080808;

  color:
    #ffffff;

  font-family:
    inherit;

  font-size: 15px;

  font-weight: 400;

  letter-spacing: 0;

  padding:
    0 18px
    0 58px;

  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.field input::placeholder {

  color:
    rgba(255, 255, 255, 0.35);

  opacity: 1;
}

.field input:hover {

  border-color:
    rgba(255, 255, 255, 0.24);
}

.field input:focus {

  border-color:
    rgba(255, 255, 255, 0.52);

  background:
    #0b0b0b;

  box-shadow:
    0 0 0 3px
    rgba(255, 255, 255, 0.045);
}


/* =========================================================
   LOGIN OPTIONS
========================================================= */

.login-options {

  display: flex;

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

  gap: 16px;

  margin:
    2px 0
    30px;
}


/* =========================================================
   REMEMBER
========================================================= */

.remember-me {

  display: inline-flex;

  align-items: center;

  gap: 9px;

  cursor: pointer;

  color:
    rgba(255, 255, 255, 0.62);

  font-size: 13px;
}

.remember-me input {

  appearance: none;

  width: 18px;
  height: 18px;

  margin: 0;

  border:
    1px solid
    rgba(255, 255, 255, 0.30);

  border-radius: 4px;

  background:
    transparent;

  cursor: pointer;

  position: relative;

  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.remember-me input:hover {

  border-color:
    rgba(255, 255, 255, 0.60);
}

.remember-me input:checked {

  background:
    #ffffff;

  border-color:
    #ffffff;
}

.remember-me input:checked::after {

  content: "";

  position: absolute;

  left: 5px;
  top: 2px;

  width: 5px;
  height: 9px;

  border:
    solid #000000;

  border-width:
    0 2px 2px 0;

  transform:
    rotate(45deg);
}


/* =========================================================
   LINKS
========================================================= */

.link-action,
.switch a,
.check a {

  color:
    #ffffff;

  text-decoration:
    underline;

  text-decoration-color:
    rgba(255, 255, 255, 0.35);

  text-underline-offset:
    3px;

  cursor: pointer;

  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

.link-action:hover,
.switch a:hover,
.check a:hover {

  color:
    #ffffff;

  text-decoration-color:
    #ffffff;
}

.link-action {

  padding: 0;

  border: 0;

  background:
    transparent;

  font:
    inherit;

  font-size: 13px;
}


/* =========================================================
   LOGIN ACTIONS
========================================================= */

.login-action-dock {

  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 12px;

  width: 100%;

  margin-top: 6px;
}


/* =========================================================
   PRIMARY BUTTON
========================================================= */

.primary-action {

  width: 100%;

  min-height: 58px;

  border:
    1px solid
    #ffffff;

  border-radius:
    var(--radius-sm);

  background:
    #ffffff;

  color:
    #000000;

  font-family:
    inherit;

  font-size: 15px;

  font-weight: 600;

  letter-spacing: -0.01em;

  cursor: pointer;

  box-shadow:
    none;

  transition:
    background 170ms ease,
    color 170ms ease,
    border-color 170ms ease,
    transform 170ms ease;
}

.primary-action:hover {

  background:
    #e9e9e9;

  border-color:
    #e9e9e9;

  transform:
    translateY(-1px);
}

.primary-action:active {

  transform:
    translateY(0);
}


/* =========================================================
   HUELLA
========================================================= */

.btn-huella {

  min-height: 58px;

  border:
    1px solid
    rgba(255, 255, 255, 0.22);

  border-radius:
    var(--radius-sm);

  background:
    transparent;

  color:
    #ffffff;

  font-family:
    inherit;

  font-size: 14px;

  font-weight: 500;

  cursor: pointer;

  box-shadow:
    none;

  transition:
    background 170ms ease,
    border-color 170ms ease,
    transform 170ms ease;
}

.btn-huella:hover {

  background:
    rgba(255, 255, 255, 0.06);

  border-color:
    rgba(255, 255, 255, 0.45);

  transform:
    translateY(-1px);
}

.btn-huella:active {

  transform:
    translateY(0);
}

.fingerprint-icon {

  display: inline-flex;

  margin-right: 8px;

  font-size: 17px;

  vertical-align: middle;
}


/* =========================================================
   MESSAGE
========================================================= */

.msg {

  min-height: 20px;

  margin-top: 16px;

  color:
    rgba(255, 255, 255, 0.72);

  font-size: 13px;

  line-height: 1.45;

  text-align: center;
}


/* =========================================================
   SWITCH
========================================================= */

.switch {

  margin:
    30px 0
    0;

  padding-top:
    24px;

  border-top:
    1px solid
    rgba(255, 255, 255, 0.08);

  text-align:
    center;

  color:
    rgba(255, 255, 255, 0.45);

  font-size: 13px;

  line-height: 1.5;
}

.switch a {

  margin-left:
    4px;

  font-weight:
    500;
}


/* =========================================================
   REGISTER HEADING
========================================================= */

.form-heading {

  margin:
    0 0
    30px;

  text-align:
    left;
}

.form-heading h3 {

  margin:
    0 0
    10px;

  color:
    #ffffff;

  font-size:
    36px;

  line-height:
    1.05;

  font-weight:
    600;

  letter-spacing:
    -0.045em;
}

.form-heading p {

  max-width:
    470px;

  margin:
    0;

  color:
    rgba(255, 255, 255, 0.48);

  font-size:
    14px;

  line-height:
    1.6;
}


/* =========================================================
   REGISTER INPUTS
========================================================= */

.auth-box.registro .field {

  margin-bottom:
    18px;
}

.auth-box.registro .field input {

  height:
    56px;
}


/* =========================================================
   REGISTER BUTTON
========================================================= */

.register-step .primary-action {

  margin-top:
    8px;
}


/* =========================================================
   CHECKBOX TERMS
========================================================= */

.check {

  display:
    flex;

  align-items:
    flex-start;

  gap:
    10px;

  margin:
    20px 0
    24px;

  color:
    rgba(255, 255, 255, 0.48);

  font-size:
    12px;

  line-height:
    1.55;

  cursor:
    pointer;
}

.check input {

  flex:
    0 0 auto;

  width:
    17px;

  height:
    17px;

  margin-top:
    1px;

  appearance:
    none;

  border:
    1px solid
    rgba(255, 255, 255, 0.30);

  border-radius:
    4px;

  background:
    transparent;

  cursor:
    pointer;
}

.check input:hover {

  border-color:
    rgba(255, 255, 255, 0.55);
}

.check input:checked {

  background:
    #ffffff;

  border-color:
    #ffffff;
}

.check input:checked::after {

  content:
    "";

  display:
    block;

  width:
    5px;

  height:
    9px;

  margin:
    2px
    auto
    0;

  border:
    solid
    #000000;

  border-width:
    0 2px 2px 0;

  transform:
    rotate(45deg);
}


/* =========================================================
   SECONDARY BUTTON
========================================================= */

.secondary-action {

  min-height:
    50px;

  padding:
    0 20px;

  border:
    1px solid
    rgba(255, 255, 255, 0.18);

  border-radius:
    var(--radius-sm);

  background:
    transparent;

  color:
    #ffffff;

  font-family:
    inherit;

  font-size:
    13px;

  font-weight:
    500;

  cursor:
    pointer;

  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.secondary-action:hover {

  background:
    rgba(255, 255, 255, 0.06);

  border-color:
    rgba(255, 255, 255, 0.42);

  transform:
    translateY(-1px);
}

.secondary-action.compact {

  min-height:
    44px;

  padding:
    0 15px;
}


/* =========================================================
   OTP CARD
========================================================= */

.phone-otp-card {

  width:
    100%;

  margin:
    20px 0;

  padding:
    20px;

  border:
    1px solid
    rgba(255, 255, 255, 0.10);

  border-radius:
    var(--radius-md);

  background:
    #080808;
}

.phone-otp-head {

  display:
    flex;

  align-items:
    flex-start;

  gap:
    12px;

  margin-bottom:
    18px;
}

.phone-otp-icon {

  display:
    flex;

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

  width:
    36px;

  height:
    36px;

  flex:
    0 0 36px;

  border:
    1px solid
    rgba(255, 255, 255, 0.15);

  border-radius:
    9px;

  background:
    #0d0d0d;

  color:
    #ffffff;

  font-size:
    16px;

  font-weight:
    600;
}

.phone-otp-head strong {

  display:
    block;

  margin-bottom:
    5px;

  color:
    #ffffff;

  font-size:
    14px;

  font-weight:
    600;
}

.phone-otp-head p {

  margin:
    0;

  color:
    rgba(255, 255, 255, 0.46);

  font-size:
    12px;

  line-height:
    1.5;
}

.phone-otp-card .field {

  margin-bottom:
    12px;
}

.phone-otp-actions {

  display:
    flex;

  gap:
    10px;

  flex-wrap:
    wrap;
}

.phone-otp-actions .secondary-action {

  flex:
    1 1 180px;
}


/* =========================================================
   REGISTER STEPS
========================================================= */

.register-slider {

  position:
    relative;

  width:
    100%;
}


/* =========================================================
   STEP 1
========================================================= */

.register-step.step-1 {

  display:
    block;

  width:
    100%;
}


/* =========================================================
   STEP 2
========================================================= */

.register-step.step-2 {

  display:
    none;

  width:
    100%;
}


/* =========================================================
   ACTIVE STEPS
========================================================= */

.register-step.step-1.active {

  display:
    block;
}

.register-step.step-2.active {

  display:
    block;
}


/* =========================================================
   SUPPORT :has
========================================================= */

.register-slider:has(.step-2.active) .step-1 {

  display:
    none;
}

.register-slider:has(.step-1.active) .step-2 {

  display:
    none;
}


/* =========================================================
   HIDDEN
========================================================= */

[hidden] {

  display:
    none !important;
}


/* =========================================================
   AUTOFILL
========================================================= */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {

  -webkit-text-fill-color:
    #ffffff;

  -webkit-box-shadow:
    0 0 0 1000px
    #080808
    inset;

  transition:
    background-color
    9999s
    ease-out;
}


/* =========================================================
   SELECTION
========================================================= */

::selection {

  background:
    rgba(255, 255, 255, 0.18);

  color:
    #ffffff;
}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {

  width:
    7px;
}

::-webkit-scrollbar-track {

  background:
    #000000;
}

::-webkit-scrollbar-thumb {

  background:
    rgba(255, 255, 255, 0.18);

  border-radius:
    10px;
}

::-webkit-scrollbar-thumb:hover {

  background:
    rgba(255, 255, 255, 0.32);
}


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

@media (max-width: 760px) {

  .auth-page {

    padding:
      45px
      18px
      55px;
  }

  .auth-shell {

    width:
      min(560px, 100%);
  }

  .auth-panel {

    padding:
      48px
      36px
      42px;
  }

  .login-logo {

    width:
      min(280px, 80%);
  }

  .form-heading h3 {

    font-size:
      32px;
  }
}


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

@media (max-width: 560px) {

  .auth-page {

    align-items:
      flex-start;

    padding:
      24px
      12px
      40px;
  }

  .auth-shell {

    border-radius:
      24px;
  }

  .auth-panel {

    padding:
      38px
      20px
      34px;

    border-radius:
      23px;
  }

  .login-brand {

    margin-bottom:
      38px;
  }

  .login-logo {

    width:
      82%;

    max-height:
      105px;
  }

  .field {

    margin-bottom:
      20px;
  }

  .field input {

    height:
      55px;

    font-size:
      15px;

    padding-left:
      56px;
  }

  .input-icon {

    left:
      17px;
  }

  .login-options {

    align-items:
      flex-start;

    gap:
      12px;
  }

  .login-action-dock {

    grid-template-columns:
      1fr;

    gap:
      10px;
  }

  .btn-huella,
  .primary-action {

    min-height:
      55px;
  }

  .form-heading {

    margin-bottom:
      26px;
  }

  .form-heading h3 {

    font-size:
      30px;
  }

  .form-heading p {

    font-size:
      13px;
  }

  .phone-otp-card {

    padding:
      16px;
  }
}


/* =========================================================
   SMALL PHONE
========================================================= */

@media (max-width: 380px) {

  .auth-page {

    padding:
      16px
      8px
      30px;
  }

  .auth-panel {

    padding:
      32px
      15px
      28px;
  }

  .login-brand {

    margin-bottom:
      32px;
  }

  .login-logo {

    width:
      86%;

    max-height:
      90px;
  }

  .login-options {

    flex-direction:
      column;

    align-items:
      flex-start;

    gap:
      12px;
  }

  .form-heading h3 {

    font-size:
      27px;
  }

  .auth-box.registro {

    padding:
      0;
  }
}


/* =========================================================
   REDUCE MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {

    scroll-behavior:
      auto !important;

    transition-duration:
      0.01ms !important;

    animation-duration:
      0.01ms !important;

    animation-iteration-count:
      1 !important;
  }
}

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

.driver-auth-header {

  margin:
    0 0 34px;
}


.driver-auth-header h1 {

  margin:
    0 0 12px;

  color:
    #ffffff;

  font-size:
    clamp(36px, 6vw, 52px);

  line-height:
    0.98;

  font-weight:
    600;

  letter-spacing:
    -0.055em;
}
