/* Custom (non-B2C-hosted) sign-in / sign-up pages. Page-level sizing/scroll behaviour (the
   height/overflow/100dvh handling) comes from .cp-grad-page + .cp-grad-page--fullscreen
   (chipin-design.css), applied on the wrapping div in SignIn.razor/SignUp.razor - .cp-auth-shell
   itself is just the inner content column, same role as .cp-import-shell. */

.cp-auth-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: var(--cp-shell-max);
  margin: 0 auto;
}

/* Same surface treatment as .cp-grad-card (chipin-design.css) - radius, hairline,
   elevation - so sign-in and the add-to-list / chip-in flows read as one product.
   It previously carried its own max-width: 500px, which could never apply: the
   shell above it was narrower, so the card was already clamped to the shell. */
.cp-auth-card {
  background: #ffffff;
  border: 1px solid var(--cp-hairline);
  border-radius: var(--cp-radius-card);
  box-shadow: var(--cp-elev);
  padding: 30px;
  width: 100%;
  box-sizing: border-box;
}
.cp-auth-logo {
  height: 60px;
  display: block;
  margin: 0 auto 22px;
}
.cp-auth-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--cp-ink);
  letter-spacing: -.01em;
  margin: 0 0 18px;
  text-align: center;
}

.cp-auth-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cp-pink-soft);
  color: var(--cp-pink);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

.cp-auth-subtext {
  font-size: 13px;
  color: var(--cp-ink);
  opacity: .75;
  text-align: center;
  margin: 0 0 18px;
}

.cp-auth-link-btn {
  width: 100%;
  border: none;
  background: none;
  color: var(--cp-pink);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  padding: 4px 0;
}
.cp-auth-link-btn:hover {
  text-decoration: underline;
}

.cp-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  border: 1px solid var(--cp-line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--cp-ink);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 4px;
  transition: background-color .15s;
}
.cp-google-btn:hover {
  background-color: #f4f6f8;
  text-decoration: none;
  color: var(--cp-ink);
}
.cp-google-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' width='18' height='18'%3E%3Cpath fill='%234285F4' d='M17.64 9.2c0-.637-.057-1.251-.164-1.84H9v3.481h4.844a4.14 4.14 0 0 1-1.796 2.716v2.259h2.908c1.702-1.567 2.684-3.875 2.684-6.615z'/%3E%3Cpath fill='%2334A853' d='M9 18c2.43 0 4.467-.806 5.956-2.18l-2.908-2.259c-.806.54-1.837.86-3.048.86-2.344 0-4.328-1.584-5.036-3.711H.957v2.332A8.997 8.997 0 0 0 9 18z'/%3E%3Cpath fill='%23FBBC05' d='M3.964 10.71A5.41 5.41 0 0 1 3.682 9c0-.593.102-1.17.282-1.71V4.958H.957A8.996 8.996 0 0 0 0 9c0 1.452.348 2.827.957 4.042l3.007-2.332z'/%3E%3Cpath fill='%23EA4335' d='M9 3.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C13.463.891 11.426 0 9 0A8.997 8.997 0 0 0 .957 4.958L3.964 7.29C4.672 5.163 6.656 3.58 9 3.58z'/%3E%3C/svg%3E");
}

.cp-apple-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  border: 1px solid #000000;
  border-radius: 10px;
  background: #000000;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 4px;
  transition: background-color .15s;
}
.cp-apple-btn:hover {
  background-color: #1a1a1a;
  text-decoration: none;
  color: #ffffff;
}
.cp-apple-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512' width='18' height='18'%3E%3Cpath fill='%23ffffff' d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141 4 184.8 4 274c0 26.2 4.8 53.3 14.4 81.2 12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-89.9-61.7-92.4zM256.4 84.5c26.9-32 24.5-61.2 23.7-71.5-23.8 1.4-51.3 16.4-67 34.6-17.4 19.5-27.7 43.7-25.6 71.1 26.4 2 51-11.3 68.9-34.2z'/%3E%3C/svg%3E");
}
/* Same glyph in dark fill, for use on light backgrounds (e.g. the Security Settings provider
   badge) where the white .cp-apple-icon - built for the black "Continue with Apple" button - is
   nearly invisible. */
.cp-apple-icon-dark {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512' width='18' height='18'%3E%3Cpath fill='%23000000' d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141 4 184.8 4 274c0 26.2 4.8 53.3 14.4 81.2 12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-89.9-61.7-92.4zM256.4 84.5c26.9-32 24.5-61.2 23.7-71.5-23.8 1.4-51.3 16.4-67 34.6-17.4 19.5-27.7 43.7-25.6 71.1 26.4 2 51-11.3 68.9-34.2z'/%3E%3C/svg%3E");
}

.cp-auth-divider {
  margin: 20px 0 14px;
  position: relative;
  text-align: center;
}
.cp-auth-divider span {
  display: inline-block;
  position: relative;
  font-size: 12px;
  font-weight: 600;
  color: var(--cp-ink);
  background: #ffffff;
  padding: 0 10px;
  z-index: 1;
}
.cp-auth-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--cp-line);
}

.cp-auth-form label {
  display: block;
  font-size: 13px;
  color: var(--cp-ink);
  margin-bottom: 4px;
}
.cp-auth-form input[type="email"],
.cp-auth-form input[type="password"],
.cp-auth-form input[type="text"] {
  width: 100%;
  height: 46px;
  border: 1px solid var(--cp-line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--cp-ink);
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  padding: 0 14px;
  margin-bottom: 12px;
  box-sizing: border-box;
}
.cp-auth-form input:focus {
  outline: none;
  border-color: var(--cp-pink);
}
.cp-auth-password-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.cp-auth-password-row a {
  font-size: 13px;
  font-weight: 600;
  color: var(--cp-pink);
}

.cp-auth-submit {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 10px;
  background: var(--cp-pink);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: opacity .15s;
}
.cp-auth-submit:hover {
  opacity: .85;
}
.cp-auth-submit:disabled,
.cp-auth-link-btn:disabled {
  cursor: default;
  opacity: .85;
}

.cp-btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  opacity: .85;
  animation: cp-spin .7s linear infinite;
}
@keyframes cp-spin {
  to { transform: rotate(360deg); }
}

.cp-auth-footer {
  width: 100%;
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--cp-ink);
}
.cp-auth-footer a {
  font-weight: 700;
  color: var(--cp-pink);
  margin-left: 4px;
}

