* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Ubuntu", sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

.container {
  display: flex;
  flex: 1;
}

/* LEFT PANEL */
.left-panel {
  flex: 1;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
}

.brand {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.brand img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-right: 15px;
}

.brand h1 {
  font-size: 24px;
  font-weight: 600;
}

.left-panel h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.left-panel p {
  opacity: 0.8;
  max-width: 400px;
}

/* RIGHT PANEL */
.right-panel {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.form-box {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(20px);

  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.form-box .logo-top {
  text-align: center;
  margin-bottom: 15px;
}

.form-box .logo-top img {
  width: 70px;
}

.form-box h2 {
  text-align: center;
  margin-bottom: 20px;
}

.input-group {
  margin-bottom: 15px;
}

.input-group input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.input-group input::placeholder {
  color: #ddd;
}

.btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #3b82f6;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background: #2563eb;
}

.error {
  background: rgba(255, 0, 0, 0.2);
  color: #ffb4b4;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  text-align: center;
}

.link {
  text-align: right;
  margin-top: 10px;
}

.link a {
  color: #93c5fd;
  font-size: 14px;
  text-decoration: none;
}

/* MOBILE */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }

  .left-panel {
    padding: 30px;
    text-align: center;
  }

  .brand {
    justify-content: center;
  }

  .left-panel h2 {
    font-size: 26px;
  }
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group input {
  width: 100%;
  padding: 14px 12px;
  border-radius: 8px;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 14px;
}

.input-group label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #ccc;
  font-size: 14px;
  pointer-events: none;
  transition: 0.3s ease;
}

.input-group input:focus + label,
.input-group input:valid + label {
  top: -8px;
  font-size: 11px;
  color: #93c5fd;
}

.password-group {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  color: #ccc;
}
.btn {
  position: relative;
  overflow: hidden;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top: 2px solid #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

body {
  animation: fadeIn 0.8s ease-in-out;
}

.form-box {
  animation: slideUp 0.8s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #333;
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(-20px);
  transition: 0.3s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  background: #28a745;
}
.toast.error {
  background: #dc3545;
}

#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.loader-box {
  text-align: center;
  color: #fff;
}

.loader-box p {
  margin-top: 10px;
  font-size: 14px;
}

/* Spinner */
.loader-box .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #fff;
  border-top: 4px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.announcement-bar {
  width: 100%;
  background: #dc2626;
  color: #fff;
  overflow: hidden;
  position: fixed;
  bottom: 0; /* 👈 moved from top to bottom */
  left: 0;
  z-index: 9999;
  font-size: 18px;
  font-weight: 500;
}

.announcement-content {
  display: inline-block;
  white-space: nowrap;
  padding: 10px 0;
  animation: scrollText 20s linear infinite;
}

.announcement-content:hover {
  animation-play-state: paused;
}

.announcement-bar {
  box-shadow: 0 -2px 10px rgba(220, 38, 38, 0.6);
}

@keyframes scrollText {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

/* Push page down so it doesn't overlap */
body {
  margin-bottom: 40px;
}

/* ===============================
   PREMIUM TOAST STYLE
=============================== */
.custom-toast,
.toast-body-custom,
.toast-checkbox {
  pointer-events: auto;
}

.toast-container {
  z-index: 99999 !important;
  max-width: 380px;
}

.custom-toast {
  will-change: transform;
}

.custom-toast {
  width: 340px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transform: translateX(-120%);
  opacity: 0;
  transition: all 0.5s ease;
}

/* Show animation */
.custom-toast.show {
  transform: translateX(0);
  opacity: 1;
}

/* Header */
.toast-header-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.toast-icon {
  font-size: 18px;
  margin-right: 6px;
}

.toast-title {
  font-weight: 600;
  font-size: 15px;
  color: #222;
  flex: 1;
}

/* Close button */
.toast-close {
  background: none;
  border: none;
  font-size: 18px;
  opacity: 0.6;
  cursor: pointer;
}

.toast-close:hover {
  opacity: 1;
}

/* Body */
.toast-body-custom {
  padding: 16px;
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

.toast-body-custom strong {
  color: #0d6efd;
  font-weight: 600;
}

/* Footer badges */
.toast-footer {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.badge-soft {
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.badge-soft.success {
  background: rgba(25, 135, 84, 0.1);
  color: #198754;
}

.toast-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: #666;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 14px;
}

.toast-checkbox input {
  accent-color: #0d6efd;
  cursor: pointer;
}

.toast-checkbox label {
  cursor: pointer;
}
