/* Chatlnked account auth overlay pages */

:root {
  --cl-accent: #2E9CCA;
  --cl-accent-deep: #29648A;
  --cl-auth-text: rgba(255, 255, 255, 0.95);
  --cl-auth-soft: rgba(255, 255, 255, 0.74);
  --cl-auth-muted: rgba(170, 171, 184, 0.82);
}

html,
body {
  min-height: 100%;
}

.cl-auth-body {
  min-height: 100vh;
  margin: 0;
  color: var(--cl-auth-text);
  background:
    radial-gradient(circle at 51% 48%, rgba(255, 255, 255, 0.04), transparent 18%),
    url("/static/img/account_start_chat_bridge_background.png"),
    linear-gradient(135deg, #090f1f, #050913);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cl-auth-page {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 54px);
}

.cl-auth-page::before,
.cl-auth-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cl-auth-page::before {
  z-index: -2;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.07), transparent 18%),
    radial-gradient(circle at 43% 43%, rgba(174, 90, 255, 0.10), transparent 30%),
    radial-gradient(circle at 59% 52%, rgba(46, 156, 202, 0.09), transparent 30%);
  mix-blend-mode: screen;
}

.cl-auth-page::after {
  z-index: -1;
  background:
    radial-gradient(circle at 50% 48%, transparent 0 18%, rgba(5, 9, 19, 0.06) 48%, rgba(5, 9, 19, 0.36) 100%),
    linear-gradient(90deg, rgba(5, 9, 19, 0.18), rgba(5, 9, 19, 0.05), rgba(5, 9, 19, 0.19));
  backdrop-filter: blur(0.45px);
  -webkit-backdrop-filter: blur(0.45px);
}

.cl-auth-overlay {
  width: min(100%, 520px);
  position: relative;
  border-radius: 30px;
  border: 1px solid rgba(170, 171, 184, 0.18);
  background:
    linear-gradient(180deg, rgba(26, 34, 60, 0.74), rgba(9, 14, 27, 0.80)),
    rgba(7, 13, 24, 0.80);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 30px 90px rgba(0, 0, 0, 0.50),
    0 0 0 1px rgba(46, 156, 202, 0.08);
  overflow: hidden;
}

.cl-auth-overlay::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 0%, rgba(46, 156, 202, 0.14), transparent 42%),
    linear-gradient(135deg, rgba(174, 90, 255, 0.08), transparent 42%, rgba(46, 156, 202, 0.09));
  opacity: 0.78;
}

.cl-auth-overlay-inner {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 4vw, 34px);
}

.cl-auth-logo {
  width: 92px;
  margin: 0 auto 18px;
  filter:
    drop-shadow(0 0 5px rgba(255, 255, 255, 0.68))
    drop-shadow(0 0 16px rgba(46, 156, 202, 0.28));
}

.cl-auth-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.cl-auth-title {
  margin: 0;
  text-align: center;
  color: #ffffff;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.cl-auth-subtitle {
  margin: 10px auto 0;
  max-width: 390px;
  text-align: center;
  color: var(--cl-auth-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.cl-auth-panel {
  margin-top: 24px;
  border-radius: 22px;
  border: 1px solid rgba(170, 171, 184, 0.14);
  background: rgba(255, 255, 255, 0.048);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 32px rgba(0, 0, 0, 0.24);
  padding: clamp(18px, 3vw, 24px);
}

.google-signin-btn {
  min-height: 50px;
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.94);
  color: rgba(17, 24, 39, 0.94);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 16px;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.google-signin-btn:hover,
.google-signin-btn:focus {
  color: rgba(17, 24, 39, 0.96);
  text-decoration: none;
  background: #ffffff;
}

.google-signin-btn__logo {
  display: block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.cl-auth-divider {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 16px 0;
  color: var(--cl-auth-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.cl-auth-divider::before,
.cl-auth-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

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

.cl-auth-field label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.cl-auth-field input,
.cl-auth-field select,
.cl-auth-field textarea {
  width: 100%;
  min-height: 46px;
  border-radius: 14px !important;
  border: 1px solid rgba(170, 171, 184, 0.18) !important;
  background: rgba(5, 9, 19, 0.42) !important;
  color: rgba(255, 255, 255, 0.94) !important;
  padding: 10px 12px;
}

.cl-auth-field input:focus,
.cl-auth-field select:focus,
.cl-auth-field textarea:focus {
  border-color: rgba(46, 156, 202, 0.42) !important;
  box-shadow: 0 0 0 3px rgba(46, 156, 202, 0.10) !important;
  outline: 0 !important;
}

.cl-auth-check {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--cl-auth-soft);
  font-size: 0.9rem;
}

.cl-auth-primary {
  min-height: 50px;
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(71, 220, 255, 0.78);
  background: linear-gradient(135deg, var(--cl-accent), var(--cl-accent-deep));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(46, 156, 202, 0.18),
    0 0 18px rgba(46, 156, 202, 0.24),
    0 14px 30px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.cl-auth-primary:hover,
.cl-auth-primary:focus {
  color: #ffffff;
  filter: brightness(1.04);
}

.cl-auth-link-row {
  margin-top: 16px;
  text-align: center;
  color: var(--cl-auth-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.cl-auth-link-row a {
  color: #7dd3fc;
  font-weight: 800;
  text-decoration: none;
}

.cl-auth-link-row a:hover {
  text-decoration: underline;
}

.cl-auth-error {
  border-radius: 14px;
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: rgba(127, 29, 29, 0.30);
  color: #fecaca;
  padding: 10px 12px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.cl-auth-field-error {
  margin-top: 6px;
  color: #fecaca;
  font-size: 0.82rem;
}

.cl-auth-back {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 5;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.cl-auth-back:hover {
  color: #ffffff;
}

@media (max-width: 575.98px) {
  .cl-auth-page {
    padding: 16px;
    align-items: flex-start;
  }

  .cl-auth-overlay {
    margin-top: 34px;
    border-radius: 24px;
  }

  .cl-auth-logo {
    width: 76px;
  }
}
