@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope/Manrope-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope/Manrope-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope/Manrope-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Match https://questionnaire.uigreenmetric.com/university/ background */
  --gm-bg-deep: #00493a;
  --gm-bg-main: #13a283;
  --gm-bg-soft: #13a283;

  --gm-surface: rgba(255, 255, 255, 0.82);
  --gm-surface-solid: #ffffff;

  --gm-text: #0f2233;
  --gm-muted: #536578;
  --gm-accent: #0b7f70;
  --gm-accent-strong: #086459;

  --gm-focus: rgba(11, 127, 112, 0.26);
  --gm-danger: #b42318;
  --gm-success: #0d7a52;

  --gm-shadow: 0 28px 72px rgba(2, 10, 18, 0.24);
  --gm-shadow-soft: 0 12px 32px rgba(2, 10, 18, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.gm-theme {
  min-height: 100vh;
  margin: 0;
  color: var(--gm-text);
  font-family: 'Outfit', 'Manrope', 'Nunito', sans-serif;
  font-size: 14px;
  background: linear-gradient(135deg, var(--gm-bg-deep), var(--gm-bg-main));
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 14px;
  position: relative;
  overflow-x: hidden;
}

.gm-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.gm-shell {
  width: min(1120px, 100%);
  position: relative;
  z-index: 1;
}

.gm-shell.compact {
  max-width: 560px;
}

.gm-card {
  border-radius: 22px;
  overflow: hidden;
  background: var(--gm-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--gm-shadow);
  animation: card-enter 0.5s ease both;
}

.gm-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 28px;
}

.gm-shell.has-flyer .gm-body {
  grid-template-columns: minmax(320px, 0.95fr) minmax(280px, 1.05fr);
  align-items: stretch;
}

.gm-shell.has-flyer .gm-panel {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.gm-shell.has-flyer .gm-brand img {
  width: 180px;
}

.gm-shell.has-flyer .gm-title {
  margin: 8px 0 20px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gm-shell.has-flyer .form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
}

.gm-shell.has-flyer .form-input {
  height: 44px;
  font-size: 13.5px;
}

.gm-shell.has-flyer .btn-signin {
  height: 46px;
  font-size: 14px;
}

.gm-shell.has-flyer .gm-help-link {
  font-size: 12.5px;
  font-weight: 600;
}

.gm-shell.has-flyer .gm-meta {
  font-size: 14px;
}

.gm-panel {
  background: var(--gm-surface-solid);
  border-radius: 18px;
  box-shadow: var(--gm-shadow-soft);
  border: 1px solid rgba(2, 10, 18, 0.08);
  padding: 26px;
}

.gm-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.gm-brand img {
  width: 190px;
  height: auto;
  display: block;
}

.gm-role-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 127, 112, 0.1);
  color: var(--gm-accent-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gm-title {
  margin-top: 10px;
  margin-bottom: 20px;
  text-align: center;
  font-size: clamp(1.45rem, 1.5vw, 1.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.gm-subtitle {
  margin: 10px 0 20px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--gm-muted);
  line-height: 1.55;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: #34485b;
  font-size: 0.87rem;
  font-weight: 600;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #7a8f9f;
  font-size: 14px;
  pointer-events: none;
}

.form-input {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(15, 34, 51, 0.16);
  background: #fdfefe;
  color: var(--gm-text);
  font-size: 0.94rem;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#username {
  padding: 0 14px 0 40px;
}

#password {
  padding: 0 42px 0 40px;
}

.form-input::placeholder {
  color: #90a3b2;
}

.form-input:focus {
  border-color: rgba(11, 127, 112, 0.58);
  box-shadow: 0 0 0 4px var(--gm-focus);
}

.eye-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #7a8f9f;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

.eye-toggle:hover {
  color: #4d6274;
}

.alert-message {
  min-height: 22px;
  margin: 6px 0 10px;
  text-align: center;
  font-size: 0.88rem;
}

.alert-message.text-success {
  color: var(--gm-success);
}

.alert-message.text-danger {
  color: var(--gm-danger);
}

.btn-signin {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(145deg, var(--gm-accent), #0ea182);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-signin:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(11, 127, 112, 0.28);
  filter: saturate(1.05);
}

.btn-signin:disabled {
  opacity: 0.8;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.gm-help {
  margin-top: 12px;
  text-align: center;
}

.gm-help-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(11, 127, 112, 0.32);
  color: var(--gm-accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.gm-help-link:hover {
  background: rgba(11, 127, 112, 0.08);
  transform: translateY(-1px);
}

.gm-help-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.gm-meta {
  margin-top: 12px;
  text-align: center;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--gm-muted);
}

.gm-meta a {
  color: var(--gm-accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.gm-aside {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: var(--gm-shadow-soft);
  min-height: 100%;
}

.gm-aside a {
  display: block;
  width: 100%;
  height: 100%;
}

.gm-aside::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(4, 20, 27, 0.38), rgba(4, 20, 27, 0));
}

.gm-aside img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gm-aside:hover img {
  transform: scale(1.02);
}

.gm-shell.has-flyer .gm-aside {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #ffffff;
}

.gm-shell.has-flyer .gm-aside::after {
  display: none;
}

.gm-shell.has-flyer .gm-aside a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gm-shell.has-flyer .gm-aside img {
  position: static;
  inset: auto;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
}

.gm-shell.has-flyer .gm-aside:hover img {
  transform: scale(1.02);
}

.gm-footer {
  padding: 14px 18px;
  background: rgba(248, 250, 252, 0.72);
  border-top: 1px solid rgba(2, 10, 18, 0.08);
  text-align: center;
}

.gm-footer p {
  margin: 0;
  font-size: 0.82rem;
  color: #3f4f60;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 0;
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  body.gm-theme {
    padding: 26px 12px;
  }

  .gm-shell.has-flyer .gm-body {
    grid-template-columns: 1fr;
  }

  .gm-shell.has-flyer .gm-aside {
    display: none;
  }
}

@media (max-width: 640px) {
  .gm-card {
    border-radius: 18px;
  }

  .gm-body {
    padding: 18px;
    gap: 18px;
  }

  .gm-panel {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .gm-brand img {
    width: 155px;
  }

  .gm-shell.has-flyer .gm-title {
    margin-bottom: 16px;
  }

  .gm-subtitle {
    margin-bottom: 18px;
  }

  .gm-footer p {
    letter-spacing: 0.02em;
    font-size: 0.76rem;
  }
}

/* Inline spinner used on the SIGN IN button during loading. */
.hi-spin {
  animation: hi-spin 0.9s linear infinite;
  transform-origin: 50% 50%;
}

@keyframes hi-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
