
/* ==========================================
   SECOND LIFE AI - AUTHENTICATION PAGES
========================================== */

.auth-page {
  --auth-green: #078260;
  --auth-dark: #075640;
  --auth-text: #172b24;
  --auth-muted: #718078;
  --auth-border: #e1eae5;

  min-height: 100vh;
  margin: 0;
  background: #f5f9f6;
  color: var(--auth-text);
}

.auth-page *,
.auth-page *::before,
.auth-page *::after {
  box-sizing: border-box;
}

.auth-page a {
  text-decoration: none;
}

/* NAVBAR */

.auth-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  border-bottom: 1px solid var(--auth-border);
  background: #fff;
}

.auth-header-inner {
  width: 100%;
  max-width: 1440px;
  min-height: 74px;
  margin: 0 auto;
  padding: 0 4.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.auth-brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  color: var(--auth-dark);
  white-space: nowrap;
}

.auth-brand .brand-mark {
  width: 39px;
  height: 39px;
  display: grid;
  flex-shrink: 0;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #10a779, #078260);
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(7, 130, 96, .15);
}

.auth-brand-text {
  display: flex;
  flex-direction: column;
  color: #173b2e;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.auth-brand-text small {
  margin-top: 3px;
  color: #819188;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .7px;
}

/* Navbar search */

.auth-nav-search {
  width: 280px;
  min-width: 160px;
  height: 44px;
  padding: 4px 5px 4px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dce7e0;
  border-radius: 12px;
  background: #f8faf9;
}

.auth-search-icon {
  color: #73857b;
  font-size: 23px;
  line-height: 1;
}

.auth-nav-search input {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 0 3px;
  border: none;
  outline: none;
  background: transparent;
  color: #334155;
  font-size: 12px;
}

.auth-nav-search input::placeholder {
  color: #89948e;
}

.auth-nav-search button {
  height: 33px;
  padding: 0 13px;
  flex-shrink: 0;
  border: none;
  border-radius: 8px;
  background: var(--auth-green);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.auth-nav-search button:hover {
  background: var(--auth-dark);
}

/* Navigation links */

.auth-main-nav {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

.auth-main-nav a {
  position: relative;
  min-height: 43px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #52665b;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.auth-main-nav a:hover {
  color: var(--auth-green);
}

/* Account buttons */

.auth-nav-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
}

.auth-login-nav,
.auth-join-nav {
  min-height: 36px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
  transition: .2s ease;
}

.auth-login-nav {
  border-color: #a8dec5;
  background: #fff;
  color: var(--auth-green);
}

.auth-login-nav:hover,
.auth-login-nav.active {
  background: #effaf4;
}

.auth-join-nav {
  border-color: var(--auth-green);
  background: var(--auth-green);
  color: #fff;
}

.auth-join-nav:hover {
  background: var(--auth-dark);
}

/* MAIN LAYOUT */

.auth-wrapper {
  width: min(1080px, calc(100% - 48px));
  min-height: calc(100vh - 140px);
  margin: 0 auto;
  padding: 55px 0;
  display: grid;
  grid-template-columns: minmax(350px, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 65px;
}

/* LOGIN CARD */

.auth-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 35px;
  border: 1px solid #e3ece6;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 15px 45px rgba(15, 45, 30, .06);
}

.auth-logo {
  width: 47px;
  height: 47px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, #10a779, #078260);
  color: #fff;
  font-size: 25px;
  font-weight: 850;
  box-shadow: 0 7px 15px rgba(7, 130, 96, .17);
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--auth-green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.auth-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10a779;
  box-shadow: 0 0 0 4px #e1f6e9;
}

.auth-card h1 {
  margin: 13px 0 10px;
  color: #13291f;
  font-size: clamp(28px, 3vw, 35px);
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -1px;
}

.auth-card h1 span {
  color: var(--auth-green);
}

.auth-description {
  margin: 0 0 25px;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.8;
}

/* Login form */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-form label {
  margin-top: 5px;
  color: #334b3e;
  font-size: 12px;
  font-weight: 750;
}

.auth-form .field {
  width: 100%;
  min-height: 47px;
  padding: 12px 14px;
  border: 1px solid #dce7e0;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: #253b30;
  font: inherit;
  font-size: 13px;
  transition: border-color .2s, box-shadow .2s;
}

.auth-form .field::placeholder {
  color: #9aa79f;
}

.auth-form .field:focus {
  border-color: #34b88c;
  box-shadow: 0 0 0 4px rgba(7, 130, 96, .08);
}

.auth-password-wrap {
  position: relative;
  width: 100%;
}

.auth-password-wrap .field {
  padding-right: 65px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  padding: 5px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--auth-green);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.auth-submit-btn {
  width: 100%;
  min-height: 47px;
  margin-top: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--auth-green);
  border-radius: 10px;
  background: var(--auth-green);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}

.auth-submit-btn:hover {
  background: var(--auth-dark);
  transform: translateY(-1px);
}

.auth-submit-btn:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}

.auth-message {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.auth-message:empty {
  display: none;
}

.auth-message.success {
  color: #047857;
}

.auth-message.error {
  color: #b91c1c;
}

/* Sign up link */

.auth-divider {
  margin: 25px 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8a9990;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .8px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e8eee9;
}

.auth-switch {
  margin: 0;
  color: #718078;
  font-size: 12px;
  text-align: center;
  line-height: 1.8;
}

.auth-switch a {
  color: var(--auth-green);
  font-weight: 800;
}

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

.auth-note {
  margin: 17px 0 0;
  color: #929e96;
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
}

/* Right-side content */

.auth-side-content {
  position: relative;
  overflow: hidden;
  min-height: 450px;
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #d9eee1;
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 80%, rgba(167,243,208,.48), transparent 30%),
    linear-gradient(145deg, #fff 0%, #f0fbf4 100%);
}

.auth-side-label {
  color: var(--auth-green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
}

.auth-side-content h2 {
  max-width: 390px;
  margin: 17px 0 12px;
  color: #123b2c;
  font-size: clamp(30px, 3.3vw, 43px);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -1.4px;
}

.auth-side-content h2 span {
  color: var(--auth-green);
}

.auth-side-content > p {
  max-width: 370px;
  margin: 0;
  color: #718078;
  font-size: 13px;
  line-height: 1.9;
}

.auth-benefits {
  margin-top: 26px;
  display: grid;
  gap: 13px;
}

.auth-benefits div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #426554;
  font-size: 12px;
  font-weight: 650;
}

.auth-benefits div span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d9f6e5;
  color: var(--auth-green);
  font-weight: 900;
}

.auth-decoration {
  position: absolute;
  right: 5px;
  bottom: -30px;
  width: 170px;
  height: 150px;
  opacity: .85;
}

.auth-decoration-circle {
  position: absolute;
  right: -10px;
  bottom: 0;
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: #c9f1da;
}

.auth-decoration-card {
  position: absolute;
  top: 12px;
  left: 0;
  width: 145px;
  padding: 18px 13px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border: 1px solid #d8eee0;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(7, 130, 96, .12);
  transform: rotate(-6deg);
}

.auth-decoration-check {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--auth-green);
  color: #fff;
  font-weight: 800;
}

.auth-decoration-card strong {
  color: #174a35;
  font-size: 12px;
}

.auth-decoration-card small {
  color: #84938a;
  font-size: 9px;
}

/* Footer */

.auth-footer {
  min-height: 65px;
  padding: 17px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid var(--auth-border);
  background: #fff;
  color: #819188;
  font-size: 11px;
}

.auth-footer strong {
  color: var(--auth-dark);
}

/* Responsive navbar and page */

@media (max-width: 1200px) {
  .auth-header-inner {
    padding: 0 2.5%;
    gap: 12px;
  }

  .auth-nav-search {
    width: 220px;
  }

  .auth-main-nav {
    gap: 0;
  }

  .auth-main-nav a {
    padding: 0 5px;
    font-size: 10px;
  }

  .auth-login-nav,
  .auth-join-nav {
    padding: 0 9px;
  }

  .auth-wrapper {
    gap: 30px;
  }
}

@media (max-width: 960px) {
  .auth-header-inner {
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 8px;
  }

  .auth-nav-search {
    flex: 1;
    width: auto;
  }

  .auth-main-nav {
    order: 3;
    flex: 0 0 100%;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .auth-main-nav::-webkit-scrollbar {
    display: none;
  }

  .auth-main-nav a {
    flex-shrink: 0;
    padding: 0 10px;
    font-size: 11px;
  }

  .auth-wrapper {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
    padding: 35px 0;
  }

  .auth-card {
    max-width: 480px;
  }

  .auth-side-content {
    min-height: 330px;
    padding: 32px;
  }

  .auth-decoration {
    right: 25px;
  }
}

@media (max-width: 600px) {
  .auth-header-inner {
    gap: 10px;
  }

  .auth-brand .brand-mark {
    width: 35px;
    height: 35px;
  }

  .auth-brand-text {
    font-size: 13px;
  }

  .auth-nav-actions {
    gap: 5px;
  }

  .auth-login-nav,
  .auth-join-nav {
    min-height: 33px;
    padding: 0 9px;
    font-size: 10px;
  }

  .auth-nav-search {
    order: 4;
    flex: 0 0 100%;
    width: 100%;
  }

  .auth-main-nav {
    order: 3;
    gap: 10px;
  }

  .auth-main-nav a {
    min-height: 38px;
    padding: 0 2px;
  }

  .auth-wrapper {
    width: calc(100% - 28px);
    padding: 23px 0 35px;
    gap: 18px;
  }

  .auth-card {
    padding: 25px 20px;
    border-radius: 17px;
  }

  .auth-card h1 {
    font-size: 30px;
  }

  .auth-side-content {
    min-height: 310px;
    padding: 25px 22px;
    border-radius: 17px;
  }

  .auth-side-content h2 {
    max-width: 300px;
    font-size: 32px;
  }

  .auth-decoration {
    right: -10px;
    bottom: -55px;
    opacity: .5;
  }

  .auth-footer {
    flex-direction: column;
    gap: 7px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page *,
  .auth-page *::before,
  .auth-page *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* SIGNUP PAGE ADDITIONS */

.auth-page .terms-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 4px;
  color: #52665b;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.7;
  cursor: pointer;
}

.auth-page .terms-option input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 1px 0 0;
  accent-color: #078260;
  cursor: pointer;
}

.auth-page .terms-option span {
  flex: 1;
}

.auth-page .auth-nav-actions .auth-join-nav.active {
  background: #075640;
  border-color: #075640;
  color: #fff;
}

.auth-page .auth-password-wrap .auth-password-toggle:focus-visible,
.auth-page .auth-submit-btn:focus-visible {
  outline: 3px solid rgba(7, 130, 96, .25);
  outline-offset: 3px;
}
