@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap");

/* ============================================================
   Ascencia Malta — Student Payment Portal (Kiosk)
   Redesign: quiet arrivals-hall check-in screen — white paper,
   one thin red accent, underlined fields, a single confident
   headline. The vertical canvas below is the physical kiosk
   panel; the content inside it stays top-anchored, not centered,
   the way a check-in terminal actually reads.
   ============================================================ */

:root {
  --ink: #17140f;
  --slate: #726c60;
  --slate-light: #a79e92;

  --primary: #bc0f2c;
  --primary-dark: #8c0b22;
  --primary-tint: #fdeeef;

  --paper: #ffffff;
  --line: #e7e2d6;

  --stamp: #0e6e5c;
}

.primary-text {
  color: var(--primary) !important;
}

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;

  margin: 0;
  padding: 0;

  background: var(--paper);
  font-family: "Montserrat", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

.kiosk-wrapper {
  width: 100vw;
  height: 100vh;
  padding: 0;
  margin: 0;
}

/* ---------- Kiosk frame (portrait panel) ---------- */

.kiosk {
  width: 100vw;
  height: 100vh;

  max-width: none;
  max-height: none;
  margin-bottom: 400px;

  background: var(--paper);

  position: relative;
  display: flex;
  flex-direction: column;

  overflow: hidden;

  animation: kioskIn 0.6s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

@keyframes kioskIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Topbar ---------- */

/* .container3 {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  height: 100vh;
} */

.kiosk-topbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  margin-bottom: 40px;
  padding: 0px 0px;
  text-align: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  margin-top: 140px;
}

.brand-logo__img {
  height: 220px;
  width: auto;
  display: block;
  /* display: none; */
}

.brand-logo__fallback {
  display: none;
  align-items: center;
  gap: 12px;
}

.brand-logo__mark {
  width: 40px;
  height: 40px;
  border-radius: 50% 50% 50% 6px;
  background: var(--primary);
  color: var(--paper);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
}

.brand-logo__word {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--ink);
  text-transform: uppercase;
}

.brand-logo__word em {
  display: block;
  font-style: normal;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
}

.kiosk-eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------- Content ---------- */

.kiosk-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;

  width: 100%;
  padding-left: 16vw;
  padding-right: 16vw;
  padding-bottom: 380px;
}

.accent-rule {
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 0 0px 30px;
}

.kiosk-heading {
  text-align: left;
}

.kiosk-subtitle {
  text-align: center;
}

.kiosk-heading {
  font-family: "Montserrat", monospace;
  font-weight: 300;
  font-size: 60px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -1.5px;
  margin-bottom: 120px;
}

.kiosk-heading span {
  font-weight: 500;
}

.kiosk-subtitle {
  font-size: 22px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 10px 10px;
  /* background-color: var(--line); */
  color: var(--slate);
  margin-top: 30px;
  margin-bottom: 50px;
}

/* ---------- Fields (underline style, no boxes) ---------- */

.login-form {
  width: 100%;
  max-width: none;
}

.field-group {
  margin-bottom: 46px;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  color: #302f2f;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.field-tag {
  font-family: "Montserrat", monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--primary);
  background: var(--primary-tint);
  border-radius: 5px;
  padding: 3px 7px;
  text-transform: none;
}

.field-line {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--line);
  padding-bottom: 14px;
  transition: border-color 0.18s ease;
}

.field-line:focus-within {
  border-color: var(--primary);
}

.field-line.error {
  border-color: #dc3545 !important;
}

.field-line.success {
  border-color: var(--stamp) !important;
}

.field-line input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-family: "Montserrat", monospace;
  font-size: clamp(20px, 2vh, 30px);
  letter-spacing: 1px;
  color: var(--ink);
  font-weight: 500;
}

.field-line input::placeholder {
  font-size: 20px;
  color: var(--slate-light);
  font-weight: 400;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.2px;
}

.field-error {
  color: #dc3545;
  font-size: 13px;
  margin-top: 8px;
  display: block;
  min-height: 18px;
}

/* input animation */
/* .animated-input {
  position: relative;
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
}

.animated-input input {
  color: transparent !important;
  caret-color: var(--primary);
  position: relative;
  z-index: 1;
}

.animated-value {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  pointer-events: none;

  font-family: "Montserrat", monospace;
  font-size: clamp(20px, 2vh, 30px);
  letter-spacing: 1px;
  font-weight: 500;
  color: var(--ink);

  overflow: visible;
}

.animated-value:empty {
  opacity: 0;
}

.animated-value:not(:empty) {
  opacity: 1;
} */

/* New character */
.char {
  display: inline-block;
  animation: charIn 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.char.remove {
  animation: charOut 0.12s ease-out forwards;
}

@keyframes charIn {
  0% {
    opacity: 0;
    transform: translateY(-12px);
  }

  70% {
    opacity: 1;
    transform: translateY(2px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes charOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}

/* quiet ink-stamp check that appears once a field has content */
.field-stamp {
  flex: none;
  width: 30px;
  height: 30px;
  margin-left: 14px;
  border-radius: 50%;
  border: 2px solid var(--stamp);
  color: var(--stamp);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5) rotate(-18deg);
  transition:
    opacity 0.25s ease,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.field-stamp svg {
  width: 15px;
  height: 15px;
}

.field-line.has-value .field-stamp {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.field-toggle {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.field-toggle:hover {
  background: var(--line);
  color: var(--ink);
}

.field-toggle svg {
  width: 22px;
  height: 22px;
}

.success-message {
  margin-top: 24px;
  padding: 18px;
  border-left: 4px solid var(--stamp);
  background: #f1faf7;
  color: var(--stamp);
  font-size: 16px;
  font-weight: 500;
}

.forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.forgot-link {
  position: relative;
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: 3px 0;
}

.forgot-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease;
}

.forgot-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------- Continue / login button ---------- */

.continue-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: clamp(64px, 8vh, 92px);
  font-size: clamp(16px, 1.6vh, 19px);
  margin-top: 24px;
  border: none;
  border-radius: 16px;
  background: var(--primary);
  color: var(--paper);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: 0.6px;
  /* text-transform: uppercase; */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.08s ease;
}

/* Shine swipe */
.continue-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.8s ease;
}

.continue-btn:hover::before {
  transform: translateX(100%);
}

.continue-btn span {
  position: relative;
  z-index: 1;
}

.continue-btn:active {
  transform: translateY(2px);
}

.continue-btn svg {
  width: 30px;
  height: 30px;
  transition: transform 0.2s ease;
}

.continue-btn:hover svg {
  transform: translateX(5px);
}

.continue-btn:focus-visible,
.forgot-link:focus-visible,
.field-toggle:focus-visible {
  outline: 3px solid var(--primary-dark);
  outline-offset: 3px;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

/* =====================================================
   Dashboard Kiosk Layout
===================================================== */

.dashboard-page {
  min-height: 100vh;
}

.dashboard-header-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: block;
}

.dashboard-content {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
  justify-content: flex-start;
}

.dashboard-inner-content {
  transform: translateY(200px);
}

/* Header/course partial spacing */

.dashboard-content .course-card,
.dashboard-content .student-card {
  margin-bottom: 35px;
}

/* ================= LOGOUT BUTTON ================= */

.dashboard-logout {
  position: absolute;
  top: 45px;
  right: 60px;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 22px;

  border-radius: 30px;

  background: #fff;
  color: #bc0f2c;

  border: 1px solid #bc0f2c;

  text-decoration: none;

  font-size: 15px;
  font-weight: 600;

  transition: all 0.25s ease;

  z-index: 10;
}

.dashboard-logout i {
  font-size: 18px;
}

.dashboard-logout:hover {
  background: #bc0f2c;
  color: #fff;
  transform: translateY(-2px);
}

.dashboard-back {
  position: absolute;
  top: 45px;
  left: 60px;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 22px;

  border-radius: 30px;

  background: #fff;
  color: var(--primary);

  border: 1px solid var(--primary);

  text-decoration: none;

  font-size: 15px;
  font-weight: 600;

  transition: all 0.25s ease;

  z-index: 10;
}

.dashboard-back i {
  font-size: 18px;
}

.dashboard-back:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.dashboard-course-wrapper {
  margin-bottom: 70px;
}

/* ================= PAYMENT GRID ================= */

.dashboard-home__icon i {
  font-size: 48px;
  opacity: 0.95;
  color: #fff;
}

.dashboard-home__grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(290px, 1fr));

  gap: 24px;

  margin-top: 40px;
}

.dashboard-home__tile {
  min-height: 290px;

  border-radius: 18px;

  padding: 30px 25px;

  text-decoration: none;

  color: #ffffff;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.dashboard-home__tile:hover {
  transform: translateY(-6px);

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

/* Theme colours matching login */

.dashboard-home__tile--red {
  background: linear-gradient(135deg, #bc0f2c, #e02b48);
}

.dashboard-home__tile--blue {
  background: linear-gradient(135deg, #2d7fb8, #1f628f);
}

.dashboard-home__tile--orange {
  background: linear-gradient(135deg, #d77a00, #f4a321);
}

.dashboard-home__tile--green {
  background: linear-gradient(135deg, #177245, #24a56a);
}

.dashboard-home__icon {
  font-size: 42px;

  margin-bottom: 15px;
}

.dashboard-home__title {
  font-size: 20px;

  font-weight: 700;

  margin-bottom: 8px;
}

.dashboard-home__tile p {
  margin: 0;

  font-size: 14px;

  opacity: 0.9;
}

/* Mobile */

@media (max-width: 768px) {
  .dashboard-home__grid {
    grid-template-columns: 1fr;
  }

  .dashboard-home__tile {
    min-height: 150px;
  }
}

/* ---------- Footer ---------- */

.kiosk-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;

  text-align: center;

  padding: 30px 40px 50px;
}

.kiosk-footer__brand {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--slate);
}

.kiosk-footer__note {
  font-size: 13px;
  color: var(--slate-light);
}

/* VP27 */
/* Portrait kiosk screens */
/* @media (max-height: 900px) {
  .kiosk-content {
    justify-content: flex-start;
    padding-top: 20px;
  }

  .kiosk-topbar {
    margin-bottom: 25px;
  }

  .brand-logo__img {
    height: 90px;
  }

  .kiosk-subtitle {
    margin-bottom: 20px;
  }

  .field-group {
    margin-bottom: 25px;
  }
} */
/* @media (orientation: portrait) {
  html,
  body {
    background: var(--paper);
  }

  .kiosk {
    width: 100vw;
    height: 100vh;
  }

  .kiosk-content {
    width: 100%;
    max-width: none;

    padding-left: 17vw;
    padding-right: 17vw;
  }

  .login-form {
    width: 100%;
    max-width: none;
  }

  .kiosk-heading {
    font-size: clamp(48px, 6vw, 84px);
  }

  .kiosk-subtitle {
    margin-bottom: 2vh;
  }
} */
