 * { box-sizing: border-box; margin: 0; padding: 0; }
    html, body { height: 100%; font-family: 'Poppins', sans-serif; }

    body {
      height: 100vh;
      background: #0f0f0f;
      color: #f5f5f5;
      position: relative;
    }

    .role-icon {
      font-size: 1.2rem;
      color: #00bcd4;
      animation: pulse 2s infinite ease-in-out;
    }

    @keyframes pulse {
      0%, 100% { opacity: 0.6; transform: scale(1); }
      50% { opacity: 1; transform: scale(1.15); }
    }

    .role-select-wrapper {
      margin-top: 12px;
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 6px;
      animation: fadeInUp 0.8s ease;
    }

    .role-select-wrapper label {
      font-size: 0.95rem;
      color: #d9d9d9;
    }

    .role-select-wrapper select {
      width: 100%;
      padding: 12px;
      border-radius: 6px;
      background: #2a2a2a;
      color: #fff;
      border: 1px solid #444;
      font-size: 1rem;
      cursor: pointer;
      outline: none;
    }

    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(12px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .slider {
      position: absolute;
      inset: 0;
      overflow: hidden;
      z-index: 0;
    }

    .slide {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center;
      opacity: 0;
      animation: fadeSlide 90s linear infinite;
      filter: brightness(85%);
    }

    @keyframes fadeSlide {
      0% { opacity: 0; }
      5% { opacity: 0.7; }
      90% { opacity: 0.7; }
      100% { opacity: 0; }
    }

    .left-overlay {
      position: absolute;
      inset: 0 50% 0 0;
      background-image: url('images/Kiota Logo 1.jpg');
      background-repeat: no-repeat;
      background-position: left center;
      background-size: contain;
      opacity: 0.85;
      z-index: 1;
    }

    nav {
      position: fixed;
      top: 0;
      width: 100%;
      padding: 15px 0;
      display: flex;
      justify-content: space-around;
      background: rgba(0,0,0,.7);
      backdrop-filter: blur(6px);
      z-index: 10;
    }

    nav a {
      color: #f5f5f5;
      text-decoration: none;
      display: flex;
      gap: 8px;
      align-items: center;
    }

    nav a:hover { color: #00bcd4; }

    .login-section {
      position: absolute;
      top: 50%;
      right: 12%;
      transform: translateY(-50%);
      width: 350px;
      background: rgba(25,25,25,.85);
      padding: 25px;
      border-radius: 12px;
      box-shadow: 0 0 25px rgba(0,0,0,.6);
      backdrop-filter: blur(8px);
      z-index: 2;
    }

    .login-section h2 {
      text-align: center;
      margin-bottom: 15px;
    }

    .login-section input {
      width: 100%;
      padding: 10px;
      margin: 8px 0;
      border-radius: 6px;
      border: none;
      background: #2a2a2a;
      color: #fff;
    }

    .login-btn {
      width: 100%;
      padding: 10px;
      background: #00bcd4;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-weight: 600;
      margin-top: 10px;
    }

    .login-btn:hover { background: #0097a7; }

    .register-btn {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  background: transparent;
  color: #00bcd4;
  border: 1px solid #00bcd4;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.register-btn:hover {
  background: #00bcd4;
  color: #000;
}


.bg-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  opacity: 0;
  will-change: transform, opacity;
  animation: dissolve 330s linear infinite;
}

/* Alternating zoom */
/* Alternating zoom with Dissolve */
.slide.zoom-in {
  /* We use 'dissolve' instead of 'fade' */
  animation-name: dissolve, zoomIn;
  animation-duration: 30s;
  animation-timing-function: ease-in-out;
}

.slide.zoom-out {
  animation-name: dissolve, zoomOut;
  animation-duration: 30s;
  animation-timing-function: ease-in-out;
}


@keyframes dissolve {
  0% {
    opacity: 1;
    filter: blur(0px); /* Optional: adds a photographic dissolve feel */
  }
  15% {
    opacity: 1;
    filter: blur(0px);
  }
  85% {
    opacity: 1;
    filter: blur(0px);
  }
  100% {
    opacity: 1;
  }
}

/* Fade timing per slide */
@keyframes fade {
  0%   { opacity: 1; }
  10%  { opacity: 1; }
  70%  { opacity: 1; } 
  70%  { opacity: 1; }
  70%  { opacity: 1; }/* stays visible */
  75%  { opacity: 1; }
   75%  { opacity: 1; }
  100% { opacity: 1; }
}


/* Zoom effects */
@keyframes zoomIn {
  from { transform: scale(1); }
  to   { transform: scale(1.15); }
}

@keyframes zoomOut {
  from { transform: scale(1.15); }
  to   { transform: scale(1); }
}

/* Delays (paired automatically) */
.slide-1  { animation-delay: 0s; }
.slide-2  { animation-delay: 30s; }
.slide-3  { animation-delay: 60s; }
.slide-4  { animation-delay: 90s; }
.slide-5  { animation-delay: 120s; }
.slide-6  { animation-delay: 150s; }
.slide-7  { animation-delay: 180s; }
.slide-8  { animation-delay: 210s; }
.slide-9  { animation-delay: 240s; }
.slide-11 { animation-delay: 270s; }
.slide-10 { animation-delay: 300s; }

/* Background images with Logo-Matched Deep Charcoal-Brown Gradient Overlay */
.slide-1  { background-image: linear-gradient(135deg, rgba(46, 44, 43, 0.75), rgba(28, 27, 27, 0.9)), url("images/27.jpg"); }
.slide-2  { background-image: linear-gradient(135deg, rgba(46, 44, 43, 0.75), rgba(28, 27, 27, 0.9)), url("images/26.jpg"); }
.slide-3  { background-image: linear-gradient(135deg, rgba(46, 44, 43, 0.75), rgba(28, 27, 27, 0.9)), url("images/27.jpg"); }
.slide-4  { background-image: linear-gradient(135deg, rgba(46, 44, 43, 0.75), rgba(28, 27, 27, 0.9)), url("images/29.jpg"); }
.slide-5  { background-image: linear-gradient(135deg, rgba(46, 44, 43, 0.75), rgba(28, 27, 27, 0.9)), url("images/26.jpg"); }
.slide-6  { background-image: linear-gradient(135deg, rgba(46, 44, 43, 0.75), rgba(28, 27, 27, 0.9)), url("images/27.jpg"); }
.slide-7  { background-image: linear-gradient(135deg, rgba(46, 44, 43, 0.75), rgba(28, 27, 27, 0.9)), url("images/28.jpg"); }
.slide-8  { background-image: linear-gradient(135deg, rgba(46, 44, 43, 0.75), rgba(28, 27, 27, 0.9)), url("images/29.jpg"); }
.slide-9  { background-image: linear-gradient(135deg, rgba(46, 44, 43, 0.75), rgba(28, 27, 27, 0.9)), url("images/27.jpg"); }
.slide-10 { background-image: linear-gradient(135deg, rgba(46, 44, 43, 0.75), rgba(28, 27, 27, 0.9)), url("images/Data1.jpg"); }
.slide-11 { background-image: linear-gradient(135deg, rgba(46, 44, 43, 0.75), rgba(28, 27, 27, 0.9)), url("images/Data2.jpg"); }

/* Glassmorphism Toast */
#toast-container {
  position: fixed;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.kiota-toast {
  min-width: 300px;
  padding: 16px 25px;
  background: rgba(25, 25, 25, 0.85);
  backdrop-filter: blur(12px);
  border-left: 4px solid #00bcd4;
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  animation: slideDownFade 0.4s ease forwards, fadeOut 0.5s ease 3.5s forwards;
}

.kiota-toast.error { border-left-color: #ff4444; }
.kiota-toast.success { border-left-color: #00c851; }

@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-10px); visibility: hidden; }
}

.forgot-password-wrapper {
  text-align: right;
  margin: 4px 0 12px 0;
}

.forgot-btn {
  color: #00bcd4;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-btn:hover {
  color: #0097a7;
  text-decoration: underline;
}



/* =========================================================
   KIOTA LOGIN PAGE - RESPONSIVE LAYOUT
   Phones, tablets and landscape mobile devices
   ========================================================= */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ---------- Tablets ---------- */
@media (max-width: 1024px) {
  .left-overlay {
    inset: 0 48% 0 0;
    background-position: center;
    background-size: contain;
  }

  .login-section {
    right: 6%;
    width: min(350px, 40vw);
  }

  nav {
    padding: 13px 2%;
  }

  nav a {
    font-size: 0.9rem;
    gap: 6px;
  }
}

/* ---------- Tablets / large phones ---------- */
@media (max-width: 768px) {
  html,
  body {
    min-height: 100%;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 11px 8px;
    gap: 4px;
    justify-content: space-around;
  }

  nav a {
    flex: 1 1 20%;
    justify-content: center;
    gap: 4px;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  nav a i {
    font-size: 0.78rem;
  }

  /*
    The desktop page places the logo on the left and login
    panel on the right. On mobile, stack them so nothing
    gets squeezed or pushed off-screen.
  */
  .left-overlay {
    position: absolute;
    inset: 0;
    height: 42vh;
    min-height: 230px;
    max-height: 360px;
    background-position: center center;
    background-size: contain;
    opacity: 0.48;
    z-index: 1;
  }

  .login-section {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: min(92%, 430px);
    margin: 0 auto;
    padding: 24px 22px;
    margin-top: clamp(220px, 42vh, 350px);
    margin-bottom: 30px;
    z-index: 2;
  }

  .login-section h2 {
    font-size: 1.6rem;
    margin-bottom: 14px;
  }

  .login-section input {
    padding: 12px;
    font-size: 1rem;
  }

  .login-btn,
  .register-btn {
    padding: 12px;
    font-size: 0.95rem;
  }

  .forgot-btn {
    font-size: 0.8rem;
  }

  #toast-container {
    width: min(92%, 430px);
    top: 65px;
  }

  .kiota-toast {
    min-width: 0;
    width: 100%;
    padding: 13px 16px;
    font-size: 0.9rem;
  }

  .slide {
    background-size: cover;
    background-position: center;
  }
}

/* ---------- Phones ---------- */
@media (max-width: 480px) {
  nav {
    padding: 9px 4px;
  }

  nav a {
    font-size: 0.61rem;
    gap: 3px;
  }

  nav a i {
    font-size: 0.7rem;
  }

  .left-overlay {
    height: 35vh;
    min-height: 190px;
    max-height: 270px;
    background-size: contain;
    background-position: center;
    opacity: 0.42;
  }

  .login-section {
    width: 90%;
    max-width: 380px;
    padding: 20px 18px;
    margin-top: clamp(195px, 35vh, 265px);
    margin-bottom: 25px;
    border-radius: 10px;
  }

  .login-section h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }

  .login-section input {
    padding: 11px;
    margin: 7px 0;
    font-size: 0.92rem;
  }

  .forgot-password-wrapper {
    margin: 3px 0 10px;
  }

  .forgot-btn {
    font-size: 0.75rem;
  }

  .login-btn,
  .register-btn {
    padding: 11px;
    font-size: 0.9rem;
  }

  #toast-container {
    top: 58px;
  }

  .kiota-toast {
    font-size: 0.82rem;
  }
}

/* ---------- Very small phones ---------- */
@media (max-width: 360px) {
  nav {
    padding: 8px 2px;
  }

  nav a {
    font-size: 0.54rem;
  }

  nav a i {
    font-size: 0.62rem;
  }

  .left-overlay {
    height: 31vh;
    min-height: 170px;
    max-height: 225px;
  }

  .login-section {
    width: 92%;
    padding: 18px 15px;
    margin-top: clamp(175px, 31vh, 220px);
  }

  .login-section h2 {
    font-size: 1.25rem;
  }

  .login-section input,
  .login-btn,
  .register-btn {
    font-size: 0.85rem;
  }

  .forgot-btn {
    font-size: 0.7rem;
  }
}

/* ---------- Landscape phones ---------- */
@media (max-height: 600px) and (max-width: 900px) {
  html,
  body {
    overflow-y: auto;
  }

  nav {
    padding: 7px 5px;
  }

  nav a {
    font-size: 0.65rem;
  }

  .left-overlay {
    height: 55vh;
    min-height: 160px;
    max-height: 260px;
    background-size: contain;
  }

  .login-section {
    margin-top: clamp(155px, 52vh, 250px);
    padding: 17px 20px;
    margin-bottom: 20px;
  }

  .login-section h2 {
    margin-bottom: 8px;
  }

  .login-section input {
    padding: 8px;
    margin: 5px 0;
  }

  .login-btn,
  .register-btn {
    padding: 9px;
    margin-top: 7px;
  }
}

/* ---------- Touch devices ---------- */
@media (hover: none) and (pointer: coarse) {
  nav a:hover {
    color: #f5f5f5;
  }

  .login-btn:hover {
    background: #00bcd4;
  }

  .register-btn:hover {
    background: transparent;
    color: #00bcd4;
  }
}

