
body.techschool-login-template {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: #f9fafb;
}

.c-login-page {
  display: flex;
  width: 100%;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  padding: 15px;
  box-sizing: border-box;
}

.c-login-page__card {
  display: flex;
  width: 480px;
  max-width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 48px;
  border: 1px solid #dadee5;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 14.8px 2px rgb(0 0 0 / 4%);
  box-sizing: border-box;
}

.c-login-page__header {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  font-family: Poppins, sans-serif;
  color: #000;
}

.c-login-page__title {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
}

.c-login-page__subtitle {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.c-login-page__form {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.c-login-page__error {
  width: 100%;
  padding: 10px 14px;
  color: #b91c1c;
  border: 1px solid #b91c1c;
  border-radius: 5px;
  background: #fef2f2;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  box-sizing: border-box;
}

.c-login-page__message {
  width: 100%;
  padding: 10px 14px;
  color: #166534;
  border: 1px solid #16a34a;
  border-radius: 5px;
  background: #f0fdf4;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  box-sizing: border-box;
}

.c-login-page__field {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.c-login-page__label {
  font-family: Poppins, sans-serif;
  font-size: 16px;
  color: #000;
}

.c-login-page__label-row {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.c-login-page__forgot {
  color: #000;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  text-align: center;
  text-decoration: underline;
  white-space: nowrap;
}

.c-login-page__forgot:hover,
.c-login-page__forgot:focus-visible {
  color: #00a9ff;
  text-decoration: none;
}

.c-login-page__input {
  width: 100%;
  height: 48px;
  padding: 12px;
  color: #000;
  border: 1px solid #000;
  border-radius: 5px;
  background: #fff;
  box-sizing: border-box;
  font-family: Poppins, sans-serif;
  font-size: 16px;
}

.c-login-page__input:focus {
  border-color: #00a9ff;
  outline: 0;
}

.c-login-page__submit {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  color: #fff;
  border: 1px solid #00a9ff;
  border-radius: 10px;
  background: #00a9ff;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: all .3s;
}

.c-login-page__submit:hover,
.c-login-page__submit:focus-visible {
  color: #00a9ff;
  background: #fff;
}

.c-login-page__join {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #000;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  text-align: center;
}

.c-login-page__join a {
  color: #000;
  text-decoration: underline;
}

.c-login-page__join a:hover,
.c-login-page__join a:focus-visible {
  color: #00a9ff;
  text-decoration: none;
}

.c-login-page__footer {
  padding: 0 15px 15px;
  color: #000;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}


@media (max-width: 768px) {
  .c-login-page__card {
    gap: 24px;
    padding: 24px;
  }

  .c-login-page__title {
    font-size: 32px;
  }

  .c-login-page__subtitle {
    font-size: 15px;
  }

  /* "Forgot your password?" moves below the input instead of stacking above
     it — dissolve the label/forgot row so label, input and forgot-link all
     become direct flex items of .c-login-page__field, then reorder them.
     Desktop (>768px) is untouched: the row stays as-is, above the input. */
  .c-login-page__label-row {
    display: contents;
  }

  .c-login-page__field .c-login-page__label {
    order: 1;
  }

  .c-login-page__field .c-login-page__input {
    order: 2;
  }

  .c-login-page__field .c-login-page__forgot {
    order: 3;
  }
}
