@import url('tokens.css');

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body.mentor-login-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--color-text-primary);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

.mentor-login-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 22px;
  max-width: 480px;
  margin: 0 auto;
}

.mentor-login-brand {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-brand-magenta);
  text-align: center;
}

.mentor-login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mentor-login-logo--footer {
  flex-shrink: 0;
  align-items: flex-end;
}

.mentor-login-logo__img--footer {
  height: 24px;
  width: auto;
  max-width: 100px;
  display: block;
}

.mentor-login-card {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px 24px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.mentor-login-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 0.5px solid var(--color-border);
}

.mentor-login-card__legal {
  flex: 1;
  min-width: 0;
  font-size: 10px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

.mentor-login-card__legal a {
  color: var(--color-brand-blue);
  text-decoration: none;
  font-weight: 600;
}

.mentor-login-card__legal a:hover {
  text-decoration: underline;
}

.mentor-login-card--animate {
  animation: mentorFadeIn 0.4s ease-out;
}

@keyframes mentorFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mentor-login-title {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  margin: 0 0 8px;
  color: var(--color-text-primary);
}

.mentor-login-subtitle {
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  color: var(--color-text-secondary);
  margin: 0 0 24px;
}

.mentor-login-session-expired {
  background: var(--color-surface-submitted);
  border: 1px solid #c2daf0;
  border-radius: var(--radius-input);
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--color-text-secondary);
  text-align: center;
}

.mentor-login-error {
  display: none;
  align-items: flex-start;
  gap: 10px;
  background: var(--color-error-bg);
  border-radius: var(--radius-input);
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--color-error);
}

.mentor-login-error.is-visible {
  display: flex;
}

.mentor-login-error__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  font-weight: 700;
}

.mentor-login-field {
  margin-bottom: 18px;
}

.mentor-login-field__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.mentor-login-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.mentor-login-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-brand-blue);
  text-decoration: none;
}

.mentor-login-link:hover {
  color: var(--color-brand-blue-hover);
  text-decoration: underline;
}

.mentor-login-input-wrap {
  position: relative;
}

.mentor-login-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-family: var(--font-family);
  font-size: 15px;
  color: var(--color-text-primary);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
}

.mentor-login-input:focus {
  outline: none;
  border-color: var(--color-brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 111, 185, 0.2);
}

.mentor-login-input--password {
  padding-right: 44px;
}

.mentor-login-toggle-pw {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 44px;
  min-height: 44px;
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mentor-login-toggle-pw .material-symbols-outlined {
  font-size: 22px;
}

.mentor-login-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 14px 16px;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: var(--color-brand-blue);
  border: none;
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: background var(--motion-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mentor-login-btn:hover:not(:disabled) {
  background: var(--color-brand-blue-hover);
}

.mentor-login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.mentor-login-btn__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: mentorSpin 0.7s linear infinite;
}

.mentor-login-btn.is-loading .mentor-login-btn__spinner {
  display: inline-block;
}

.mentor-login-btn.is-loading .mentor-login-btn__label {
  opacity: 0.85;
}

@keyframes mentorSpin {
  to {
    transform: rotate(360deg);
  }
}

.mentor-login-footer {
  margin-top: 28px;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.mentor-stub-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-surface-warm);
}

.mentor-stub-header {
  background: var(--color-brand-magenta);
  color: #ffffff;
  padding: 16px 22px;
  font-size: 18px;
  font-weight: 600;
}

.mentor-stub-body {
  flex: 1;
  padding: 32px 22px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.mentor-stub-card {
  background: #ffffff;
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
}

.mentor-stub-card h1 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 8px;
}

.mentor-stub-card p {
  color: var(--color-text-secondary);
  margin: 0 0 20px;
  line-height: 1.6;
}

.mentor-stub-logout {
  display: inline-block;
  font-weight: 600;
  color: var(--color-brand-blue);
  text-decoration: none;
}

.mentor-stub-logout:hover {
  color: var(--color-brand-blue-hover);
}

.mentor-login-back {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
}

.mentor-forgot-success[hidden] {
  display: none !important;
}
