@charset "UTF-8";
/* STYLES FOR THE LOGIN / REGISTER / RESET PASSWORD PAGE (loaded after common.css) */
/* COLOR DECLARATION */
/* PAGE LAYOUT — exactly one screen tall, scrolls only if the content truly doesn't fit */
html {
  -webkit-text-size-adjust: 100%;
}

body.auth-body {
  display: block;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
}

body.auth-body::before,
body.auth-body::after {
  position: fixed;
  pointer-events: none;
}

.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vh, 40px);
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}

/* PROJECT TITLE */
.brand {
  text-align: center;
  line-height: 1;
  user-select: none;
}

.brand-eyebrow {
  font-size: clamp(0.875rem, 1.6vw, 1.25rem);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.brand-name {
  font-size: clamp(2.75rem, 9vw, 6.5rem);
  text-transform: uppercase;
  line-height: 0.95;
}

/* CARD */
.auth-card {
  width: 100%;
  max-width: 400px;
  border: 1px solid #9898ff;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: clamp(24px, 4vh, 36px) clamp(20px, 5vw, 36px);
  box-shadow: 0 8px 32px #6363c6, 0 0 80px #b1b1f6;
  transition: box-shadow ease-in-out 0.3s;
}
.auth-card:hover, .auth-card:focus-within {
  box-shadow: 0 12px 48px #6363c6, 0 0 100px #b1b1f6;
}

.auth-card-header {
  text-align: center;
  margin-bottom: 20px;
}
.auth-card-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-subtitle {
  margin-top: 6px;
  font-size: 0.875rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* FORM */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-group label,
.label-row {
  display: flex;
  align-items: center;
}

.form-group label {
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.form-group label svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.label-row {
  justify-content: space-between;
  gap: 8px;
}

.auth-form .custom-input-field {
  width: 100%;
  min-height: 44px;
  font-family: inherit;
  font-size: 16px;
  border-radius: 8px;
}

.auth-form input[type=password] {
  letter-spacing: 2px;
}

.custom-input-field.is-invalid,
.otp-input-container.is-invalid .otp-input-field {
  border-color: #a4161a;
}

/* PASSWORD SHOW / HIDE */
.password-field {
  position: relative;
}
.password-field .custom-input-field {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  color: #33336a;
  cursor: pointer;
  border-radius: 0 8px 8px 0;
}
.password-toggle svg {
  width: 18px;
  height: 18px;
}
.password-toggle .icon-hide {
  display: none;
}
.password-toggle.is-visible .icon-show {
  display: none;
}
.password-toggle.is-visible .icon-hide {
  display: block;
}
.password-toggle:focus-visible {
  outline: 2px solid #33336a;
  outline-offset: -4px;
}

/* 6-DIGIT CODE */
.otp-input-container {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.otp-input-field {
  flex: 1 1 0;
  min-width: 0;
  max-width: 52px;
  height: 52px;
  padding: 0;
  text-align: center;
  font-family: inherit;
  font-size: 22px;
  font-weight: 600;
  color: #33336a;
  border: 1.5px solid #7e7ec3;
  border-radius: 8px;
  background-color: transparent;
  transition: ease-out 0.2s;
}
.otp-input-field:hover, .otp-input-field:focus {
  border-color: #33336a;
}
.otp-input-field:focus {
  background-color: rgba(99, 99, 198, 0.1);
  outline: none;
}

/* BUTTONS AND LINKS */
.primary-button {
  margin-top: 4px;
  font-weight: 600;
  background-color: #33336a;
  border-color: #33336a;
  color: #e1e1e1;
}
.primary-button:hover {
  background-color: rgb(37.7464968153, 37.7464968153, 78.4535031847);
}
.primary-button:focus-visible {
  outline: 2px solid #33336a;
  outline-offset: 2px;
}
.primary-button:disabled {
  cursor: progress;
  opacity: 0.75;
}

.text-link {
  color: #33336a;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.text-link:hover {
  color: #6363c6;
}

.link-button {
  border: 0;
  padding: 0;
  background: none;
  font-family: inherit;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.8125rem;
}
.auth-actions form {
  display: contents;
}

.auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.8125rem;
}

/* ERRORS */
.form-alert {
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 132, 132, 0.8);
  border-left: 4px solid #ff8484;
  border-radius: 8px;
  background-color: rgba(255, 132, 132, 0.15);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
}

.field-error {
  color: #a4161a;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
}
.field-error p + p {
  margin-top: 2px;
}

/* SHORT SCREENS (small phones, landscape) — tighten spacing so login still fits without scrolling */
@media screen and (max-height: 700px) {
  .auth-page {
    gap: 12px;
  }
  .brand-name {
    font-size: clamp(2.25rem, 7vw, 4rem);
  }
  .auth-card-header {
    margin-bottom: 14px;
  }
  .auth-form {
    gap: 12px;
  }
  .auth-footer {
    margin-top: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .toast-stack .glassy-message {
    animation: none;
    transition: none;
  }
}
/* ERROR PAGES (404 / 403 / 500) */
.error-home {
  display: block;
  width: 100%;
  min-height: 44px;
  line-height: 24px;
  border-radius: 8px;
}

/*# sourceMappingURL=auth.css.map */
