@charset "UTF-8";
@import url("tokens.css");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main,
.content,
#content {
  flex: 1 0 auto;
  min-width: 0;
  max-width: 100%;
}

body > *,
main,
section,
footer,
.auth-shell,
.auth-panel,
.auth-card {
  max-width: 100%;
}

footer {
  margin: 0;
  flex-shrink: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

body.auth-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--cp-font);
  background:
    radial-gradient(circle at top left, rgba(255, 139, 57, 0.32), transparent 32%),
    radial-gradient(circle at bottom right, var(--cp-orange-muted), transparent 28%),
    linear-gradient(135deg, var(--cp-black) 0%, var(--cp-grey-950) 48%, var(--cp-black-elevated) 100%);
  color: var(--cp-white);
}

.auth-shell {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 0.95fr);
  align-items: stretch;
}

.auth-panel {
  min-height: 100vh;
  padding: 72px 56px 48px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 28px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.auth-brand img {
  width: 180px;
  max-width: 100%;
  display: block;
  margin: 0;
}

.auth-copy {
  max-width: 560px;
}

.auth-kicker {
  margin: 0 0 16px;
  color: var(--cp-orange-soft);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.auth-copy h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 1.15;
}

.auth-lead {
  margin: 20px 0 0;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.9;
}

.auth-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 420px;
}

.auth-highlights li {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}

.auth-card {
  margin: 0;
  padding: 28px;
  min-width: 0;
  border-radius: var(--cp-radius-lg);
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.92), rgba(12, 12, 12, 0.94));
  box-shadow: var(--cp-shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.auth-tab {
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.auth-tab.is-active {
  background: linear-gradient(90deg, var(--cp-orange), var(--cp-orange-soft));
  color: var(--cp-white);
  transform: translateY(-1px);
}

.auth-form-wrap {
  position: relative;
  margin-top: 24px;
}

.auth-form {
  display: none;
  animation: authFade 0.25s ease;
}

.auth-form.is-active {
  display: block;
}

.auth-form h2 {
  margin: 0;
  font-size: 1.8rem;
}

.auth-form-text {
  margin: 12px 0 24px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.auth-field {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.auth-field span {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.86);
}

.auth-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.auth-field input:focus {
  border-color: rgba(255, 145, 67, 0.95);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.14);
}

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

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.76);
}

.auth-link,
.auth-home-link {
  color: var(--cp-orange-soft);
  text-decoration: none;
}

.auth-submit {
  width: 100%;
  border: 0;
  border-radius: var(--cp-radius-md);
  padding: 16px 20px;
  background: linear-gradient(90deg, var(--cp-orange), #ffb187);
  color: var(--cp-white);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255, 106, 0, 0.25);
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.76;
  transform: none;
  box-shadow: none;
}

.auth-success-actions {
  margin-top: 18px;
}

.auth-secondary-btn {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--cp-radius-md);
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cp-white);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.auth-secondary-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 145, 67, 0.5);
}

.auth-secondary-btn:disabled {
  cursor: wait;
  opacity: 0.76;
  transform: none;
}

.auth-inline-message {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
}

.auth-inline-message[data-type="error"] {
  border-color: rgba(255, 122, 89, 0.3);
  background: rgba(255, 122, 89, 0.08);
}

.auth-inline-message[data-type="success"] {
  border-color: rgba(255, 145, 67, 0.3);
  background: rgba(255, 145, 67, 0.08);
}

.auth-home-link {
  margin-top: 20px;
  text-align: center;
  font-size: 0.95rem;
}

.auth-notice {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 9999;
  pointer-events: none;
}

.auth-notice[hidden] {
  display: none;
}

.auth-notice__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 3, 0.72);
  backdrop-filter: blur(12px);
}

.auth-notice__panel {
  position: relative;
  width: min(100%, 420px);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.96), rgba(10, 10, 10, 0.98));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
  text-align: center;
  pointer-events: auto;
}

.auth-notice__panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, var(--cp-orange), rgba(255, 177, 135, 0.92));
}

.auth-notice__panel[data-type="error"]::before {
  background: linear-gradient(90deg, #ff7a59, #ffb38d);
}

.auth-notice__title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
}

.auth-notice__body {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.8;
}

@keyframes authFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    min-height: auto;
    padding: 48px 24px 12px;
    gap: 22px;
  }

  .auth-card {
    margin: 0;
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .auth-copy h1 {
    font-size: 2rem;
  }

  .auth-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-notice {
    padding: 16px;
  }

  .auth-notice__panel {
    padding: 22px 18px;
    border-radius: 16px;
  }
}

/* Keep auth success and verification messages centered without the hidden form reserving space. */
.auth-card.is-success .auth-tabs,
.auth-card.is-success .auth-form-wrap {
  display: none !important;
}

.auth-card.is-success .auth-success-state {
  padding-top: 0 !important;
}

.auth-card.is-success .auth-inline-message {
  margin-top: 0;
}
