/* Kaizen Academy shared auth modal */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal[hidden] {
  display: none !important;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.65);
  backdrop-filter: blur(4px);
}

.auth-modal__card {
  position: relative;
  width: min(420px, calc(100% - 2.5rem));
  padding: 2.5rem;
  background: var(--white, #ffffff);
  border-radius: var(--radius, 12px);
  box-shadow: var(--shadow-lg, 0 24px 60px rgba(13, 13, 13, 0.18));
  color: var(--charcoal, #36414D);
  font-family: 'DM Sans', sans-serif;
}

.auth-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--grey, #8a8a8a);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.auth-modal__close:hover {
  background: var(--light, #f5f5f0);
  color: var(--black, #0d0d0d);
}

.auth-modal__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  color: var(--black, #0d0d0d);
}

.auth-modal__logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.auth-modal h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--black, #0d0d0d);
}

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: var(--white, #ffffff);
  color: var(--black, #0d0d0d);
  border: 1px solid var(--border, #e5e5e0);
  border-radius: var(--radius-sm, 8px);
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-google:hover {
  background: var(--light, #f5f5f0);
  border-color: var(--grey, #8a8a8a);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--grey, #8a8a8a);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border, #e5e5e0);
}

#auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#auth-form input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--white, #ffffff);
  border: 2px solid var(--border, #e5e5e0);
  border-radius: var(--radius-sm, 8px);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--charcoal, #36414D);
}

#auth-form input:focus {
  border-color: var(--yellow, #ffd559);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 213, 89, 0.1);
}

#auth-form button[type='submit'] {
  width: 100%;
  padding: 0.85rem;
  margin-top: 0.5rem;
  background: var(--yellow, #ffd559);
  color: var(--black, #0d0d0d);
  border: none;
  border-radius: var(--radius-sm, 8px);
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

#auth-form button[type='submit']:hover {
  background: var(--yellow-dark, #e6be3e);
  transform: translateY(-2px);
}

.auth-error {
  margin-top: 0.75rem;
  padding: 0.6rem 0.8rem;
  background: rgba(220, 38, 38, 0.08);
  border-left: 3px solid var(--flash-red, #dc2626);
  color: var(--flash-red, #dc2626);
  border-radius: 0 var(--radius-sm, 8px) var(--radius-sm, 8px) 0;
  font-size: 0.85rem;
}

.auth-footnote {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--grey, #8a8a8a);
}

.auth-footnote a {
  color: var(--charcoal, #36414D);
  font-weight: 600;
}

.auth-loading #app,
.auth-loading .tool-content,
.auth-loading main,
.auth-loading .main {
  visibility: hidden;
}
