html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* --------------------------------------------
   Login page specific styles (moved from page)
   -------------------------------------------- */

.login-wrapper {
  direction: rtl;
}

/* Card */
.login-card {
  width: 100%;
  max-width: 720px;
  border-radius: 12px;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  animation: cardEntrance 700ms cubic-bezier(.2,.9,.2,1) forwards;
}

/* Banner gradient */
.login-banner {
  background: linear-gradient(135deg, #0d6efd 0%, #6610f2 50%, #198754 100%);
  color: #fff;
}

/* Animated button */
.btn-animated {
  position: relative;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-animated .btn-icon {
  display: inline-block;
  transform: translateX(6px);
  transition: transform .18s ease;
  margin-left: 6px;
}
.btn-animated:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, .18);
}
.btn-animated:hover .btn-icon {
  transform: translateX(10px);
}

/* Inputs focus glow (ensure consistent with existing focus rule) */
.login-card .form-control:focus {
  box-shadow: 0 0 0 .18rem rgba(13, 110, 253, .12);
  border-color: #0b5ed7;
}

/* Subtle floating labels animation */
.form-floating > label {
  transition: transform .18s ease, color .18s ease;
}
.form-control:focus + label {
  color: #0b5ed7;
}

/* Links inside card */
.login-card .card-body a {
  text-decoration: none;
  color: #0b5ed7;
}

/* Card entrance animation */
@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.995);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .login-card {
    margin: 0 12px;
  }
  .login-banner h2 {
    font-size: 1.25rem;
  }
}