body {
  background-color: #e6ebf9;
  position: relative;
  overflow: auto;
  backdrop-filter: blur(0);
}

.container {
    padding-bottom: 60px;
}
    
.background-decor {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  }
    
.circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 123, 255, 0.08);
  animation: float 10s ease-in-out infinite;
}
    
@keyframes float {
  0%   { transform: translateY(0px); opacity: 0.6; }
  50%  { transform: translateY(-20px); opacity: 1; }
  100% { transform: translateY(0px); opacity: 0.6; }
}
    
.circle-1  { width: 40px;  height: 40px;  top: 10%;  left: 15%;  animation-delay: 0s; }
.circle-2  { width: 100px; height: 100px; top: 20%;  left: 80%;  animation-delay: 1s; }
.circle-3  { width: 60px;  height: 60px;  top: 35%;  left: 25%;  animation-delay: 2s; }
.circle-4  { width: 140px; height: 140px; top: 65%;  left: 75%;  animation-delay: 3s; }
.circle-5  { width: 50px;  height: 50px;  top: 55%;  left: 50%;  animation-delay: 1.5s; }
.circle-6  { width: 30px;  height: 30px;  top: 85%;  left: 10%;  animation-delay: 4s; }
.circle-7  { width: 90px;  height: 90px;  top: 15%;  left: 60%;  animation-delay: 2.5s; }
.circle-8  { width: 70px;  height: 70px;  top: 75%;  left: 35%;  animation-delay: 5s; }
.circle-9  { width: 20px;  height: 20px;  top: 30%;  left: 90%;  animation-delay: 6s; }
.circle-10 { width: 110px; height: 110px; top: 45%;  left: 5%;   animation-delay: 3.5s; }

.glass-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease;
}
    
.glass-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
    
.login-container {
  z-index: 1;
}

.reg-container {
  z-index: 1;
  margin-top: 10px;
  position: relative;
}

.back-to-login {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

.back-to-login .btn {
  border-radius: 25px;
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 123, 255, 0.3);
  color: #007bff;
}

.back-to-login .btn:hover {
  background: rgba(0, 123, 255, 0.1);
  border-color: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn-user {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

.btn-user::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.4) 100%);
  transform: translateX(-100%) translateY(-50%) rotate(25deg);
  transition: all 0.5s ease;
  pointer-events: none;
  border-radius: 30px;
}

.btn-user:hover::before {
  transform: translateX(100%) translateY(-50%) rotate(25deg);
}

.btn-user:active {
  transform: scale(0.95);
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.8);
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-control-user {
  width: 100%;
  padding: 12px 15px;
  font-size: 16px;
  border: 2px solid rgba(0, 123, 255, 0.3);
  border-radius: 30px;
  background: transparent;
  transition: all 0.3s ease;
  outline: none;
  color: #333;
}

.form-control-user::placeholder {
  color: transparent;
}

.form-control-user:focus {
  border-color: #007bff;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.8);
}

.form-group label {
  position: absolute;
  top: 50%;
  left: 15px;
  color: rgba(0, 0, 0, 0.4);
  font-size: 16px;
  pointer-events: none;
  transform: translateY(-50%);
  transition: 0.3s ease all;
  background-color: transparent;
  padding: 0 5px;
  z-index: 1;
}

/* Label positioning for focused, filled, or error states */
.form-control-user:focus + label,
.form-control-user:not(:placeholder-shown) + label,
.form-control-user.is-invalid + label {
  top: 0;
  left: 12px;
  font-size: 12px;
  color: #007bff;
  background-color: white;
  font-weight: 600;
  border-radius: 5px;
  transform: translateY(-50%);
}

/* Error state label color */
.form-control-user.is-invalid + label {
  color: #dc3545;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    margin-left: 15px;
    display: block;
}

.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.5);
}

.error-text {
  font-size: 13px;
  margin-top: 2px; 
  margin-bottom: 0; 
  display: block;
  margin-left: 15px;
}

.typing-text {
  overflow: hidden;
  border-right: 2px solid #007bff;
  white-space: nowrap;
  width: 0;
  animation: typing 2s steps(15), blink 0.7s step-end infinite, typing 3s steps(15) 2.5s;
    animation-fill-mode: both;
    animation-iteration-count: infinite;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  display: block;
  margin: 0 auto;
}

@keyframes typing {
    from { width: 0; }
    to { width: 15ch; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

.footer-auth {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 20px;
    color: #333;
    z-index: 100;
}

@media (max-width: 768px) {
    .auth-footer {
      font-size: 12px;
      transform: translateX(-50%);
    }
}
@media (max-width: 480px) {
    .auth-footer {
        font-size: 11px;
        transform: translateX(-50%);
    }
}

.select-has-value + .select-label {
  top: 0;
  left: 12px;
  font-size: 12px;
  color: #007bff;
  background-color: white;
  font-weight: 600;
  border-radius: 5px;
  transform: translateY(-50%);
}
