.easycreds-badge {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
  text-align: center;
  box-sizing: border-box;
}

.easycreds-badge-success {
  background: #e9f9ef;
  color: #197a3a;
  padding-top: 0;
}

.easycreds-badge-danger {
  background: #fdecec;
  color: #b42318;
}

.easycreds-badge-warning {
  background: #fff4e5;
  color: #b26a00;
}

.easycreds-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px !important;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, #111827, #2563eb);
  color: #ffffff !important;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  text-align: center;
  vertical-align: middle;
  box-sizing: border-box;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.easycreds-btn:hover {
  transform: translateY(-1px);
  opacity: 1;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

.easycreds-btn:disabled,
.easycreds-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.easycreds-btn--secondary {
  background: #ffffff;
  color: #111827 !important;
  border-color: #dbe3ef;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.easycreds-btn--secondary:hover {
  background: #f8fbff;
}

.easycreds-btn--small {
  min-height: 38px;
  padding: 9px 14px !important;
  font-size: 12px;
  line-height: 1;
}

.easycreds-label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.02em;
}

.easycreds-help-text {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: #6b7280;
}

.easycreds-dashboard button,
.easycreds-dashboard .button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  font-weight: 700;
  min-height: 44px;
  padding: 11px 18px;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.easycreds-dashboard .button-primary,
.easycreds-dashboard button[type="submit"] {
  background: linear-gradient(135deg, #111827, #2563eb) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

.easycreds-dashboard .button-secondary {
  background: #ffffff !important;
  border: 1px solid #dbe3ef !important;
  color: #111827 !important;
}

.easycreds-dashboard button:hover {
  transform: translateY(-1px);
}

.easycreds-request-form button {
  margin-top: 10px;
  width: fit-content;
}

.easycreds-dashboard-panel button {
  margin-top: 0;
}

/* student login page */
.easycreds-login-page {
  position: relative;
  z-index: 2;
}

.easycreds-login-shell {
  min-height: min(860px, calc(100vh - 48px));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 18px;
}

.easycreds-login-layout {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 460px);
  gap: 28px;
  align-items: stretch;
}

.easycreds-login-showcase,
.easycreds-login-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.easycreds-login-showcase {
  padding: 42px 40px;
  background:
    radial-gradient(
      circle at top left,
      rgba(59, 130, 246, 0.28),
      transparent 34%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(15, 23, 42, 0.32),
      transparent 38%
    ),
    linear-gradient(145deg, rgba(11, 18, 32, 0.92), rgba(17, 24, 39, 0.88));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.34);
  color: #ffffff;
}

.easycreds-login-showcase::after {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(96, 165, 250, 0.22),
    transparent 70%
  );
  pointer-events: none;
}

.easycreds-login-showcase__badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #dbeafe;
  border: 1px solid rgba(191, 219, 254, 0.18);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.easycreds-login-showcase__title {
  margin: 18px 0 14px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.easycreds-login-showcase__subtitle {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.75;
}

.easycreds-login-showcase__features {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.easycreds-login-feature {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(191, 219, 254, 0.14);
}

.easycreds-login-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.easycreds-login-feature strong {
  display: block;
  margin-bottom: 5px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.35;
}

.easycreds-login-feature p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.65;
}

.easycreds-login-card {
  padding: 34px 30px 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(219, 227, 239, 0.9);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.14);
}

.easycreds-login-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(96, 165, 250, 0.16),
    transparent 70%
  );
  pointer-events: none;
}

.easycreds-login-card__header {
  position: relative;
  z-index: 1;
}

.easycreds-login-card__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.easycreds-login-card__header h2 {
  margin: 18px 0 8px;
  color: #111827;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.easycreds-login-card__header p {
  margin: 0 0 22px;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.7;
}

.easycreds-login-form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.easycreds-login-form__field label {
  display: block;
  margin-bottom: 8px;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.easycreds-login-form__field input[type="text"],
.easycreds-login-form__field input[type="password"] {
  width: 100%;
  min-height: 56px;
  padding: 16px 18px;
  border: 1px solid #d7deea;
  border-radius: 18px;
  background: #ffffff;
  color: #111827;
  font-size: 15px;
  box-sizing: border-box;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}

.easycreds-login-form__field input[type="text"]::placeholder,
.easycreds-login-form__field input[type="password"]::placeholder {
  color: #9ca3af;
}

.easycreds-login-form__field input[type="text"]:focus,
.easycreds-login-form__field input[type="password"]:focus {
  outline: none;
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.13);
  transform: translateY(-1px);
}

.easycreds-login-form__submit {
  width: 100%;
  min-height: 56px;
  margin-top: 6px;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #111827, #2563eb) !important;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.22);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.easycreds-login-form__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 46px rgba(37, 99, 235, 0.26);
}

.easycreds-login-form__alert {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #f5c2c7;
  background: linear-gradient(180deg, #fff5f5, #fef2f2);
  color: #b42318;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 10px 24px rgba(180, 35, 24, 0.08);
}

.easycreds-login-card__footer {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.easycreds-login-card__footer-chip {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.easycreds-login-card__footer-note {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .easycreds-login-layout {
    grid-template-columns: 1fr;
  }

  .easycreds-login-showcase {
    padding: 30px 24px;
  }

  .easycreds-login-card {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .easycreds-login-shell {
    padding: 18px 12px 28px;
    min-height: auto;
  }

  .easycreds-login-showcase,
  .easycreds-login-card {
    border-radius: 24px;
  }

  .easycreds-login-showcase {
    padding: 24px 18px;
  }

  .easycreds-login-card {
    padding: 24px 18px 22px;
  }

  .easycreds-login-showcase__title {
    font-size: 32px;
  }

  .easycreds-login-card__header h2 {
    font-size: 30px;
  }
}

/* EasyCreds student login two-factor email verification */
.easycreds-login-form__alert--success {
  background: #ecfdf3;
  border-color: #a6f4c5;
  color: #166534;
  box-shadow: 0 10px 24px rgba(22, 101, 52, 0.08);
}

.easycreds-login-form--otp {
  margin-top: 4px;
}

.easycreds-login-form__otp-input {
  text-align: center;
  letter-spacing: 14px;
  font-size: 28px !important;
  font-weight: 800;
  line-height: 1;
  padding-left: 28px !important;
}

.easycreds-login-form--resend {
  margin-top: 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.easycreds-login-form__resend {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #ffffff;
  color: #1d4ed8;
  cursor: pointer;
  min-height: 42px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.easycreds-login-form__resend:hover {
  transform: translateY(-1px);
  background: #f8fbff;
  border-color: #bfd3f7;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
}

.easycreds-login-form__back-link {
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.easycreds-login-form__back-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .easycreds-login-form--resend {
    align-items: stretch;
    flex-direction: column;
  }

  .easycreds-login-form__resend,
  .easycreds-login-form__back-link {
    width: 100%;
    text-align: center;
  }

  .easycreds-login-form__otp-input {
    letter-spacing: 10px;
    font-size: 24px !important;
    padding-left: 22px !important;
  }
}
