@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body.devise-layout {
  background: linear-gradient(-45deg, #f8f9fa, #e9ecef, #f1f3f5, #d3f9d8);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  position: relative;
  min-height: 100vh;
}

.bg-decoration {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(25, 135, 84, 0.1) 0%, transparent 70%);
  z-index: -1;
}
.decoration-1 { width: 600px; height: 600px; top: -150px; right: -150px; }
.decoration-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; background: linear-gradient(135deg, rgba(13, 110, 253, 0.08) 0%, transparent 70%); }

.devise-container {
  position: relative;
  z-index: 1;
  padding-top: 60px;
  padding-bottom: 60px;
}

.logo-wrapper {
  position: relative;
  z-index: 10;
  margin-bottom: -45px;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.12));
}
.logo-devise {
  max-height: 220px;
  width: auto;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.logo-wrapper:hover .logo-devise {
  transform: scale(1.05) rotate(-2deg);
  filter: drop-shadow(0 25px 50px rgba(13, 110, 253, 0.25));
}

.devise-card {
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 2.5rem;
  box-shadow: 0 40px 100px rgba(0,0,0,0.1) !important;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}
.devise-card:hover {
  box-shadow: 0 50px 120px rgba(13, 110, 253, 0.12) !important;
}

.devise-header {
  padding-top: 65px !important;
}

.devise-subtitle {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0d6efd; /* Solid blue as requested */
  margin-top: 0.5rem;
  letter-spacing: -0.02em;
}

/* Polish for buttons and forms */
.form-control {
  border-radius: 14px !important;
  padding: 0.8rem 1.2rem !important;
  border: 1px solid rgba(0,0,0,0.05) !important;
  background-color: rgba(248, 249, 250, 0.8) !important;
  transition: all 0.3s ease !important;
}
.form-control:focus {
  background-color: #fff !important;
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.1) !important;
  border-color: #0d6efd !important;
}
.btn-success, .btn-primary {
  border-radius: 14px !important;
  padding: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #0d6efd 0%, #007bff 100%) !important;
  border: none !important;
  box-shadow: 0 10px 25px rgba(13, 110, 253, 0.2) !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  color: white !important;
}
.btn-success:hover, .btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(13, 110, 253, 0.3) !important;
  color: white !important;
}
.text-primary, .text-success {
  color: #0d6efd !important;
}

@media (max-width: 768px) {
  body.devise-layout {
    animation: none;
    background: #f8f9fa; /* Static light background on mobile */
  }
  .bg-decoration {
    display: none;
  }
  .devise-container {
    padding-top: 40px;
    padding-bottom: 20px;
  }
  .logo-devise {
    max-height: 140px;
  }
  .logo-wrapper {
    margin-bottom: -30px;
  }
  .devise-card {
    border-radius: 1.5rem;
  }
  .devise-header {
    padding-top: 45px !important;
    padding-bottom: 1.5rem !important;
  }
  .devise-subtitle {
    font-size: 1.2rem;
  }
  .card-body {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}
