* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100%;
  height: 100vh;
  min-height: 100dvh;
  font-family: 'Poppins', sans-serif;
  background: #0f0f0f;
  color: #f5f5f5;
  position: relative;
  overflow-x: hidden;
}

/* Background Slider Container */
.bg-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  will-change: transform, opacity;
  animation: dissolve 30s linear infinite;
}

.slide.zoom-in {
  animation: dissolve 30s ease-in-out infinite, zoomIn 30s ease-in-out infinite;
}

.slide.zoom-out {
  animation: dissolve 30s ease-in-out infinite, zoomOut 30s ease-in-out infinite;
}

@keyframes dissolve {
  0%, 100% { opacity: 0; }
  10%, 90% { opacity: 0.85; }
}

@keyframes zoomIn {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}

@keyframes zoomOut {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}

.slide-1 { animation-delay: 0s; background-image: linear-gradient(135deg, rgba(46, 44, 43, 0.75), rgba(28, 27, 27, 0.9)), url("images/27.jpg"); }
.slide-2 { animation-delay: 6s; background-image: linear-gradient(135deg, rgba(46, 44, 43, 0.75), rgba(28, 27, 27, 0.9)), url("images/26.jpg"); }
.slide-3 { animation-delay: 12s; background-image: linear-gradient(135deg, rgba(46, 44, 43, 0.75), rgba(28, 27, 27, 0.9)), url("images/27.jpg"); }
.slide-4 { animation-delay: 18s; background-image: linear-gradient(135deg, rgba(46, 44, 43, 0.75), rgba(28, 27, 27, 0.9)), url("images/26.jpg"); }
.slide-5 { animation-delay: 24s; background-image: linear-gradient(135deg, rgba(46, 44, 43, 0.75), rgba(28, 27, 27, 0.9)), url("images/27.jpg"); }

/* Top Navigation Bar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 0;
  display: flex;
  justify-content: space-around;
  background: rgba(0, 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;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #00bcd4;
}

/* Left Brand Overlay */
.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;
}

/* Form Container & Glassmorphism Card */
.login-section {
  position: absolute;
  top: 50%;
  right: 12%;
  transform: translateY(-50%);
  width: 360px;
  background: rgba(25, 25, 25, 0.85);
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 2;
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translate(-50%, 15px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.login-section h2 {
  text-align: center;
  margin-bottom: 8px;
  color: #00bcd4;
  font-size: 1.6rem;
}

.login-section p {
  line-height: 1.4;
}

.login-section input {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 6px;
  border: 1px solid #444;
  background: #2a2a2a;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.login-section input:focus {
  border-color: #00bcd4;
  box-shadow: 0 0 8px rgba(0, 188, 212, 0.4);
}

.login-btn {
  width: 100%;
  padding: 12px;
  background: #00bcd4;
  color: #000;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 12px;
  font-size: 0.95rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.login-btn:hover {
  background: #0097a7;
  color: #fff;
  transform: translateY(-2px);
}

.register-btn {
  width: 100%;
  margin-top: 10px;
  padding: 11px;
  background: transparent;
  color: #00bcd4;
  border: 1px solid #00bcd4;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.register-btn:hover {
  background: #00bcd4;
  color: #000;
}

/* Toast Notifications Container */
#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: 14px 22px;
  background: rgba(25, 25, 25, 0.9);
  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;
  font-size: 0.9rem;
  animation: slideDownFade 0.4s ease 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); }
}

/* Tablet & Mobile Responsiveness */
@media (max-width: 1024px) {
  .left-overlay {
    inset: 0 48% 0 0;
  }
  .login-section {
    right: 6%;
    width: min(350px, 40vw);
  }
}

@media (max-width: 768px) {
  html, body {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
  }

  nav {
    padding: 11px 8px;
    justify-content: space-around;
  }

  nav a {
    font-size: 0.72rem;
    gap: 4px;
  }

  .left-overlay {
    position: absolute;
    inset: 0;
    height: 38vh;
    min-height: 200px;
    background-position: center center;
    opacity: 0.45;
  }

  .login-section {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: min(92%, 420px);
    margin: 0 auto;
    margin-top: clamp(210px, 40vh, 320px);
    margin-bottom: 30px;
  }

  #toast-container {
    width: min(92%, 420px);
    top: 65px;
  }
}

@media (max-width: 480px) {
  nav a {
    font-size: 0.6rem;
  }

  .login-section {
    width: 90%;
    padding: 22px 18px;
  }

  .login-section h2 {
    font-size: 1.35rem;
  }

  .login-section input, .login-btn, .register-btn {
    font-size: 0.88rem;
    padding: 10px;
  }
}