
:root{
  --bg: #ffffff;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #d1d5db;
  --primary: #ffc400;
  --primary-hover: #e6b000;
  --shadow: 0 10px 30px rgba(17,24,39,.12);
  --radius: 6px;
  --font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{ box-sizing:border-box; }
html, body { height: 100%; }

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin:0; 
  font-family: var(--font); 
  background: var(--bg); 
  color: var(--text);
}

main.auth{
  flex: 1 0 auto;
}

.auth{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 24px 16px;
}

.auth__stack{
  width: 100%;
  max-width: 430px;      
  display: flex;
  flex-direction: column; 
  gap: 12px;
}

.auth__card{
  width: 100%;
  max-width: 430px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
}

.auth__brand{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-top: 3%;
  justify-content: center;
}

.brand__logo{
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  position: relative;
}

#logoImage{
  position: absolute;
  left: 0;                 
  top: 50%;
  height: 100%;
  width: auto;
  transform: translateY(-50%) scale(1.3); 
  transform-origin: right center;         
  display: block;
  padding-right: 50%;

}

.brand__title{
  font-weight: bold;
  font-size: 18px;
  line-height: 1.3;
}

.brand__subtitle{
  font-weight: 500;
  font-size: 15px;
  color: var(--muted);
}

.auth__title{
  margin: 10px 0 8px;
  font-size: 28px;
  font-weight: 400;
  text-align: center;
  padding-top: 8%;
}

.auth__desc{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  padding: 0 6%;
}

.auth__desc--bottom{
  margin-top: 14px;
  margin-bottom: 10px;
}

.form{
  display:flex;
  flex-direction:column;
  gap: 20px;
  align-items: center;
  margin-bottom: 8%;
}

.input{
  width: 90%;
  height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  outline: none;
  background: #fff;
}

.input:focus{
  border-color: rgba(37,99,235,.55);
  box-shadow: 0 0 0 3px rgba(37,99,235,.18);
}

.form__row{
  margin-top: -2px;
  display:flex;
  justify-content:flex-start;
}

.form__field{
  position: relative;
  width: 90%;
}

.input--full{
  width: 100%;
}

.form__row--wide{
  width: 90%;
  display: flex;
  gap: 10px;
}

.input--row{
  width: 100%;
}

#postal_code{ flex: 1; }
#city{ flex: 3; }

.btn{
  position: relative;
  height: 38px; 
  width: 90%;
  border-radius: 4px; 
  border: 1px solid transparent; 
  font-size: 13px; 
  cursor: pointer;
}

.btn--primary{
  margin-top: 6px;
  background: var(--primary);
  color: #000000;
  font-weight: 500;
}
.btn--primary:hover{ background: var(--primary-hover); }

.btn.is-loading{
  opacity: .9;
}

.btn.is-loading .btn__text{
  visibility: hidden; 
}

.btn .btn__spinner{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid rgba(255,255,255,.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  display: none;
}

.btn.is-loading .btn__spinner{
  display: block;
}

@keyframes spin{
  to{ transform: rotate(360deg); }
}

.auth__small{
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
} 

.alert{
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  width: 90%;
  margin: 0 auto 10px;
}
.alert--error{
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.alert--success{
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
.alert--full{
  width: 100%;           
  margin: 0;             
}

.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

.suggestions{
  position:absolute;
  left:0; right:0; top:100%;
  margin:6px 0 0;
  padding:0;
  list-style:none;
  background:#fff;
  border:1px solid rgba(0,0,0,.15);
  border-radius:10px;
  overflow:hidden;
  z-index:50;
  max-height:240px;
  overflow-y:auto;
}

.suggestions li{
  padding:10px 12px;
  cursor:pointer;
  border-bottom:1px solid rgba(0,0,0,.06);
}

.suggestions li:hover,
.suggestions li.is-active{
  background:rgba(0,0,0,.05);
}

@media (max-width: 420px){
  .auth__card{
    padding: 18px 16px 16px;
    box-shadow: none;
  }
  .auth__title{ font-size: 26px; }
}

.success-check{
  width: 56px;
  height: 56px;
  margin: 14px auto 10px;
  border-radius: 999px;
  background: #eaf7ee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-check svg{
  width: 28px;
  height: 28px;
  fill: #16a34a; 
}

.redirect-text{
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

footer.ups-footer{
  margin-top: auto;
  flex-shrink: 0;
}

.ups-footer{
  --brown: #351c15;

  background: var(--brown);
  color: #f2f1ef;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;

  padding: 14px 20px; 
}


.ups-footer__inner{
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}


.ups-footer__left{
  justify-self: start;
  text-align: left;
  min-width: 0;
}

.ups-footer__right{
  justify-self: end;
  text-align: right;
  min-width: 0;
}


.ups-footer__text{
  justify-self: center;
  text-align: center;
  margin: 0;
  min-width: 0;
  color: rgba(242, 241, 239, 0.85);
}


.ups-footer__link,
.ups-footer__text{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ups-footer__link{
  color: inherit;
  text-decoration: none;
  max-width: 100%;
}

.ups-footer__link:hover{
  text-decoration: underline;
}

.ups-footer__link:focus-visible{
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.ups-footer__version{
  margin-left: 8px;
  color: inherit;
  opacity: 0.95;
}


@media (max-width: 700px){
  .ups-footer__inner{
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .ups-footer__left,
  .ups-footer__right{
    justify-self: center;
    text-align: center;
  }

  .ups-footer__link,
  .ups-footer__text{
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

