/* Auth Modal Styles */
.auth-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.auth-modal-backdrop.is-open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.auth-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  padding: 1.5rem;
  box-shadow: 0px 3px 6px -2px rgba(20, 21, 26, 0.05), 0px 10px 16px -3px rgba(20, 21, 26, 0.08);
  border: 1px solid #DEE0E3;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-sizing: border-box;
}

.auth-modal::-webkit-scrollbar {
  display: none;
}
.auth-modal {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.auth-modal-backdrop.is-open .auth-modal {
  transform: translateY(0);
}

.auth-modal-close {
  display: none; /* No close button in Figma design */
}

.auth-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.auth-header h2 {
  font-size: 1.125rem;
  font-weight: 500;
  color: #14151A;
  margin: 0;
  line-height: 1.44;
  letter-spacing: -0.011em;
}

.auth-header p {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(15, 19, 36, 0.6);
  margin: 0;
  line-height: 1.42;
  letter-spacing: -0.007em;
}

.auth-tabs {
  display: flex;
  background: #FAFAFA;
  border: 1px solid #E9EAEB;
  border-radius: 8px;
  padding: 0.125rem;
}

.auth-tab {
  flex: 1;
  padding: 0.5rem 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #717680;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab.active {
  background: #fff;
  color: #414651;
  border: 1px solid #D5D7DA;
  box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.input-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #414651;
}

.input-group input {
  padding: 0.625rem 0.875rem;
  border: 1px solid #D5D7DA;
  border-radius: 8px;
  font-size: 1rem;
  color: #717680;
  outline: none;
  background: #fff;
  box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);
  transition: border-color 0.2s;
}

.input-group input::placeholder {
  color: #717680;
}

.input-group input:focus {
  border-color: #02B1F3;
}

.password-rules {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: -0.75rem;
}

.password-rules span {
  font-size: 0.875rem;
  font-weight: 400;
  color: #535862;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.password-rules img {
  width: 1rem;
  height: 1rem;
}

.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-top: -0.375rem;
  color: #535862;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.auth-terms input {
  width: 1rem;
  height: 1rem;
  margin: 0.125rem 0 0;
  flex: 0 0 auto;
  accent-color: #000;
}

.auth-terms a,
.auth-inline-notice a {
  color: #02B1F3;
  font-weight: 600;
  text-decoration: none;
}

.auth-terms a:hover,
.auth-inline-notice a:hover {
  text-decoration: underline;
}

.auth-inline-notice {
  margin: 0.5rem 0 0;
  color: #535862;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.auth-submit-btn {
  background: #000;
  color: #fff;
  border: 2px solid transparent;
  padding: 0.625rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05), inset 0px -2px 0px 0px rgba(10, 13, 18, 0.05), inset 0px 0px 0px 1px rgba(10, 13, 18, 0.18);
}

.auth-submit-btn:hover {
  background: #333;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: rgba(15, 19, 36, 0.6);
  font-size: 0.75rem;
  font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #E9EAEC;
}

.auth-divider span {
  padding: 0 0.5rem;
}

.auth-socials {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid #D5D7DA;
  padding: 0.625rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #414651;
  cursor: pointer;
  box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05), inset 0px -2px 0px 0px rgba(10, 13, 18, 0.05), inset 0px 0px 0px 1px rgba(10, 13, 18, 0.18);
  transition: background 0.2s;
}

.social-btn:hover {
  background: #F9F9F9;
}

.social-btn img {
  width: 1.5rem;
  height: 1.5rem;
}

.auth-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: #535862;
}

.auth-footer a {
  color: #02B1F3;
  font-weight: 600;
  text-decoration: none;
}

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

.auth-flow-page {
  min-height: calc(100vh - 7rem);
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vw, 5rem) 1.25rem;
  background: #f6f7f9;
}

.auth-flow-card {
  width: min(100%, 28rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid #dee0e3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 21, 26, 0.08);
}

.auth-flow-card h1 {
  margin: 0;
  color: #14151a;
  font-size: 1.5rem;
  line-height: 1.2;
}

.auth-flow-card p {
  margin: 0;
  color: #535862;
  line-height: 1.55;
}

.auth-flow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
