/*
  Grow CRM - inspired Auth Pages (Admin / Customer)
  -------------------------------------------------
  - Used by: public/login.php, customer_login.php, customer_register.php
  - Relies on variables from lp-shared.css (imported by admin.css/customer.css).
*/

.gw-auth-body{
  font-family: var(--lp-font);
  background-color: var(--lp-body-bg);
  background-image:
    linear-gradient(rgba(0, 0, 0, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, .045) 1px, transparent 1px),
    radial-gradient(1150px 760px at 30% 86%, rgba(255, 255, 255, .9), transparent 62%),
    radial-gradient(980px 620px at 75% 90%, rgba(241, 245, 249, .85), transparent 60%);
  background-size: 68px 68px, 68px 68px, auto, auto;
  background-position: center center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

body.gw-auth-body[data-theme="dark"],
body.gw-auth-body:not([data-theme="light"]){
  background-color: var(--lp-body-bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, .065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .065) 1px, transparent 1px),
    radial-gradient(1200px 740px at 20% 92%, rgba(255, 255, 255, .06), transparent 60%),
    radial-gradient(1000px 640px at 82% 90%, rgba(148, 163, 184, .08), transparent 60%);
}

.gw-auth-wrap{
  width: 100%;
  padding: 48px 16px;
}

.gw-auth-logo-outside{
  max-width: 520px;
  margin: 0 auto 18px;
}

.gw-auth-card{
  max-width: 520px;
  margin: 0 auto;
  background: var(--lp-surface);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  padding: 42px 52px;
}

body[data-theme="dark"] .gw-auth-card,
body:not([data-theme="light"]) .gw-auth-card{
  border-color: var(--lp-border);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}

@media (max-width: 575.98px){
  .gw-auth-card{
    padding: 34px 26px;
  }
}

.gw-auth-logo{
  text-align: center;
  margin-bottom: 26px;
}

.gw-auth-logo img{
  max-width: 190px;
  height: auto;
}

.gw-auth-title{
  text-align: center;
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 26px;
  color: var(--lp-heading);
}

body[data-theme="light"] .gw-auth-title{
  color: #455a64;
  font-weight: 500;
}

.gw-auth-subtitle{
  text-align: center;
  margin-top: -14px;
  margin-bottom: 22px;
  color: var(--lp-muted);
  font-size: 14px;
}

body[data-theme="light"] .gw-auth-subtitle{
  color: #90a4ae;
}

.gw-field{
  position: relative;
  margin-bottom: 18px;
}

.gw-field-has-status .gw-input{
  padding-right: 40px;
}

.gw-field-status{
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  z-index: 3;
}

.gw-field-status.is-available{
  display: inline-flex;
  color: #166534;
  background: rgba(34, 197, 94, .14);
  border: 1px solid rgba(22, 101, 52, .32);
}

.gw-field-status.is-taken,
.gw-field-status.is-invalid{
  display: inline-flex;
  color: #b91c1c;
  background: rgba(239, 68, 68, .14);
  border: 1px solid rgba(185, 28, 28, .3);
}

.gw-input{
  width: 100%;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  background: rgba(0,0,0,.015);
  padding: 16px 12px 10px;
  font-size: 16px;
  color: var(--lp-text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

body[data-theme="light"] .gw-input{
  color: #67757c;
  border-color: rgba(0,0,0,.12);
  background: rgba(0,0,0,.015);
}

body[data-theme="dark"] .gw-input,
body:not([data-theme="light"]) .gw-input{
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.03);
}

.gw-input::placeholder{
  color: rgba(103,117,124,.9);
  opacity: 1;
}

body[data-theme="dark"] .gw-input::placeholder,
body:not([data-theme="light"]) .gw-input::placeholder{
  color: rgba(230,237,243,.6);
}

.gw-input:focus{
  border-color: var(--lp-primary);
  box-shadow: 0 0 0 3px rgba(41, 182, 246, .18);
}

.gw-field-float .gw-input{
  padding-top: 19px;
  padding-bottom: 9px;
}

.gw-field-label{
  position: absolute;
  top: 50%;
  left: 12px;
  font-size: 14px;
  line-height: 1.2;
  color: #67757c;
  pointer-events: none;
  transform: translateY(-50%);
  max-width: calc(100% - 24px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: top .2s ease, left .2s ease, transform .2s ease, font-size .2s ease, color .2s ease, padding .2s ease, border-color .2s ease;
}

body[data-theme="dark"] .gw-field-label,
body:not([data-theme="light"]) .gw-field-label{
  color: var(--lp-muted);
}

.gw-field-float .gw-input::placeholder{
  opacity: 0;
  transition: opacity .2s ease;
}

.gw-field-float .gw-input:focus::placeholder,
.gw-field-float .gw-input:not(:placeholder-shown)::placeholder{
  opacity: 1;
}

.gw-field-float .gw-input:focus + .gw-field-label,
.gw-field-float .gw-input:not(:placeholder-shown) + .gw-field-label{
  top: -7px;
  left: 9px;
  transform: none;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(23, 23, 23, .9);
  background: rgba(23, 23, 23, .9);
  color: #fff;
}

.gw-auth-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0 26px;
  flex-wrap: wrap;
}

.gw-check{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #67757c;
}

body[data-theme="dark"] .gw-check,
body:not([data-theme="light"]) .gw-check{
  color: var(--lp-muted);
}

.gw-check input[type="checkbox"]{
  width: 18px;
  height: 18px;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,.25);
  background-color: transparent;
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  position: relative;
}

body[data-theme="dark"] .gw-check input[type="checkbox"],
body:not([data-theme="light"]) .gw-check input[type="checkbox"]{
  border-color: rgba(255,255,255,.25);
}

.gw-check input[type="checkbox"]:checked{
  background: var(--lp-primary);
  border-color: var(--lp-primary);
}

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

.gw-forgot{
  font-size: 16px;
  color: #67757c;
  text-decoration: none;
}

body[data-theme="dark"] .gw-forgot,
body:not([data-theme="light"]) .gw-forgot{
  color: var(--lp-muted);
}

.gw-forgot:hover{
  color: var(--lp-primary);
  text-decoration: none;
}

.gw-btn{
  display: block;
  width: 100%;
  border: 0;
  background: #171717;
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 17px;
  font-weight: 600;
  transition: background-color .2s ease;
}

.gw-btn:hover{
  background-color: rgba(23, 23, 23, .9);
}

.gw-btn:disabled{
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

.gw-auth-bottom{
  margin-top: 22px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 16px;
  color: #67757c;
}

body[data-theme="dark"] .gw-auth-bottom,
body:not([data-theme="light"]) .gw-auth-bottom{
  color: var(--lp-muted);
}

.gw-auth-bottom a{
  color: #171717;
  text-decoration: none;
  margin-left: 0;
}

body[data-theme="dark"] .gw-auth-bottom a,
body:not([data-theme="light"]) .gw-auth-bottom a{
  color: #171717;
}

.gw-auth-bottom a:hover{
  text-decoration: underline;
}

.gw-auth-alert{
  margin-bottom: 18px;
  border-radius: 4px;
  position: relative;
  padding-right: 36px;
}

.gw-auth-alert-dismissible{
  display: flex;
  align-items: flex-start;
}

.gw-alert-close{
  position: absolute;
  right: 8px;
  top: 8px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  opacity: .72;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gw-alert-close:hover{
  opacity: 1;
  background: rgba(0,0,0,.08);
}

@media (min-width: 992px){
  .gw-auth-wrap{
    padding: 32px 16px;
  }

  .gw-auth-logo-outside{
    max-width: 460px;
    margin-bottom: 14px;
  }

  .gw-auth-card{
    max-width: 460px;
    padding: 34px 40px;
  }

  .gw-auth-title{
    font-size: 22px;
    margin-bottom: 20px;
  }

  .gw-field{
    margin-bottom: 14px;
  }

  .gw-input{
    padding: 14px 11px 9px;
    font-size: 15px;
  }

  .gw-field-float .gw-input{
    padding-top: 17px;
    padding-bottom: 8px;
  }

  .gw-field-label{
    font-size: 13px;
  }

  .gw-auth-row{
    margin: 8px 0 20px;
  }

  .gw-check,
  .gw-forgot,
  .gw-auth-bottom{
    font-size: 14px;
  }

  .gw-btn{
    padding: 9px 11px;
    font-size: 16px;
  }
}

/* ---- Grow parity (flat/square) ---- */
:root{ --lp-radius: 0px; --lp-radius-sm: 0px; }
.lp-auth-card,
.lp-auth-card .card,
.lp-auth-card .card-body,
.lp-auth-card .btn,
.lp-auth-card .form-control,
.lp-auth-card .form-select,
.lp-auth-card .input-group-text{
  border-radius: 0 !important;
  box-shadow: none !important;
}
