/* ProfiLingua branding overrides (student-dashboard Keycloak login theme) */

.tutore-logo--student {
  width: auto;
  height: auto;
  max-width: 16rem;
  margin-bottom: 24px;
  align-self: flex-start;
  display: inline-flex;
}

.tutore-logo--student img {
  display: block;
  height: 4rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 640px) {
  .tutore-logo--student {
    max-width: 18rem;
  }

  .tutore-logo--student img {
    height: 5rem;
  }
}

/* Domain change alert banner */
.tutore-student-theme .tutore-domain-alert {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 24px;
  padding: 12px 16px;
  box-sizing: border-box;
  overflow: hidden;
  background: #fff7ed;
  border: 1px solid var(--tutore-primary);
  border-radius: 12px;
}

.tutore-student-theme .tutore-domain-alert-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--tutore-primary);
}

.tutore-student-theme .tutore-domain-alert-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.tutore-student-theme .tutore-domain-alert-text {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  color: var(--tutore-primary);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  word-break: break-word;
}

.tutore-student-theme .tutore-domain-alert-text strong {
  font-weight: 700;
}

/* Legal notice below “Set password” (student onboarding) */
.tutore-student-theme .tutore-legal-footer {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #6b7280;
}

.tutore-student-theme .tutore-legal-footer p {
  margin: 0;
}

.tutore-student-theme .tutore-legal-footer__privacy {
  margin-top: 0.5rem;
}

.tutore-student-theme .tutore-legal-footer a {
  color: #374151;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tutore-student-theme .tutore-legal-footer a:hover {
  color: #111827;
}

.tutore-student-theme .tutore-checkbox-inline a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@keyframes tutoreDetectAutofill {
  from {
    opacity: 1;
  }

  to {
    opacity: 1;
  }
}

.tutore-student-theme #kc-form-login input:-webkit-autofill {
  animation-name: tutoreDetectAutofill;
  animation-duration: 0.01s;
}

.tutore-student-theme #kc-form-login input:autofill {
  animation-name: tutoreDetectAutofill;
  animation-duration: 0.01s;
}

.tutore-student-theme .tutore-login-field-tip {
  margin: 6px 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #64748b;
}
