/* Alem Finance — authentication redesign */
:root {
  --alem-orange: #ee7352;
  --alem-coral: #e45455;
  --alem-ink: #24252b;
}

#auth.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.9fr);
  background: #faf8f5;
  color: var(--alem-ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

#auth[hidden] {
  display: none !important;
}

#auth .auth-brand {
  background:
    radial-gradient(ellipse at 18% 94%, #f6c9b5 0%, transparent 53%),
    radial-gradient(ellipse at 90% 10%, #fff1e8 0%, transparent 48%),
    #faf8f5;
  color: var(--alem-ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 5vw, 76px);
  min-height: 100vh;
}

#auth .brand {
  color: #222;
  font-size: 25px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
}

#auth .brand-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 14px;
  background: linear-gradient(135deg, #df4b64, #ffad58);
  color: white;
  font-size: 27px;
}

#auth .brand-thin {
  font-weight: 400;
  margin-left: 7px;
}

#auth .auth-hero {
  max-width: 570px;
}

#auth .eyebrow {
  color: #d86c52;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .13em;
}

#auth .auth-hero h1 {
  font-size: clamp(38px, 4.3vw, 69px);
  letter-spacing: -.055em;
  line-height: 1.09;
  color: #24252b;
  margin: 22px 0;
}

#auth .auth-hero h1 em {
  font-style: normal;
  color: #e77c58;
}

#auth .auth-hero p {
  font-size: 17px;
  line-height: 1.7;
  color: #657078;
}

#auth .auth-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 32px;
  color: #41484d;
}

#auth .auth-bottom {
  color: #77716e;
  font-size: 12px;
  letter-spacing: .08em;
}

#auth .auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  background: rgba(255,255,255,.5);
}

#auth .auth-card {
  width: min(100%, 485px);
  padding: clamp(24px, 3.5vw, 48px);
  border: 1px solid #eee6e0;
  border-radius: 25px;
  background: white;
  box-shadow: 0 20px 75px rgba(77,49,37,.07);
  color: #24252b;
}

#auth .auth-tabs {
  display: flex;
  gap: 5px;
  padding: 5px;
  background: #f7f4f1;
  border-radius: 12px;
  margin-bottom: 33px;
}

#auth .auth-tabs button {
  width: 50%;
  border: 0;
  border-radius: 9px;
  background: transparent;
  padding: 13px 8px;
  color: #666;
  font-weight: 650;
  cursor: pointer;
}

#auth:not(:has(#org-row:not([hidden]))) .auth-tabs [data-auth-toggle="login"],
#auth:has(#org-row:not([hidden])) .auth-tabs [data-auth-toggle="register"] {
  color: #d95c47;
  background: #fff;
  box-shadow: 0 2px 9px rgba(0,0,0,.05);
}

#auth .auth-card h2 {
  font-size: 29px;
  letter-spacing: -.035em;
  color: #22252b;
  margin: 0 0 8px;
}

#auth .auth-card .subtle {
  color: #7a7f85;
  margin-bottom: 25px;
}

#auth #auth-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

#auth #auth-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
  color: #33383d;
}

#auth #auth-form label[hidden] {
  display: none !important;
}

#auth #auth-form input,
#auth #auth-form select {
  width: 100%;
  min-height: 49px;
  box-sizing: border-box;
  border: 1px solid #e7e3e0;
  border-radius: 10px;
  background: white;
  color: #24252b;
  padding: 0 14px;
  font: inherit;
  font-weight: 400;
}

#auth #auth-form input:focus,
#auth #auth-form select:focus {
  outline: 2px solid #f6b29c;
  border-color: #ed856a;
}

#auth #auth-submit {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 11px;
  color: white;
  background: linear-gradient(100deg, #ed7953, #df5756);
  font-weight: 750;
  cursor: pointer;
  margin-top: 9px;
}

#auth #auth-submit:disabled {
  opacity: .6;
  cursor: wait;
}

#auth .auth-toggle {
  text-align: center;
  margin-top: 23px;
  color: #777;
}

#auth .auth-toggle button {
  color: #dc6952;
  font-weight: 700;
  border: 0;
  background: none;
  cursor: pointer;
}

#auth .auth-note {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #f0ebe7;
  color: #899096;
  font-size: 12px;
  line-height: 1.6;
}

#auth .auth-founder {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: #777;
}

@media(max-width: 850px) {
  #auth.auth-layout {
    grid-template-columns: 1fr;
  }
  #auth .auth-brand {
    min-height: auto;
    padding: 27px 25px;
    gap: 20px;
  }
  #auth .auth-hero h1 {
    font-size: 32px;
  }
  #auth .auth-list,
  #auth .auth-bottom {
    display: none;
  }
  #auth .auth-form-wrap {
    padding: 18px;
  }
  #auth .auth-card {
    padding: 26px 21px;
  }
}

/* Alem homepage navigation */
.alem-home-link,
.alem-home-link:visited {
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
}

.alem-home-link:hover {
  opacity: .82;
}
