/*--------------------------------------------------------------
# Login Page Styles
--------------------------------------------------------------*/

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(125% 125% at 50% 10%, #080808 50%, #621700e0 100%);
  position: relative;
  overflow: hidden;
}

.login-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/wallpapers/LogIn Wallpaper v3.mp4') center/cover no-repeat;
  opacity: 0.15;
  z-index: 1;
}

.login-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(8, 8, 8, 0.9) 0%, rgba(98, 23, 0, 0.8) 100%);
  z-index: 2;
}

/* Floating Bubbles - Optimized for Performance */
.floating-bubbles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 5;
}

.bubble {
  position: absolute;
  background: radial-gradient(circle, rgba(255, 142, 49, 0.1) 0%, rgba(196, 66, 6, 0.05) 100%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  will-change: transform;
}

.bubble:nth-child(1) {
  width: 60px;
  height: 60px;
  top: 15%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 10s;
}

.bubble:nth-child(2) {
  width: 80px;
  height: 80px;
  top: 25%;
  right: 15%;
  animation-delay: 2s;
  animation-duration: 12s;
}

.bubble:nth-child(3) {
  width: 40px;
  height: 40px;
  bottom: 25%;
  left: 20%;
  animation-delay: 4s;
  animation-duration: 8s;
}

.bubble:nth-child(4) {
  width: 70px;
  height: 70px;
  bottom: 15%;
  right: 10%;
  animation-delay: 6s;
  animation-duration: 11s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-15px) translateX(10px) rotate(90deg);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-25px) translateX(-5px) rotate(180deg);
    opacity: 1;
  }
  75% {
    transform: translateY(-10px) translateX(-15px) rotate(270deg);
    opacity: 0.7;
  }
}

.login-card {
  position: relative;
  z-index: 10;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  max-width: 450px;
  width: 100%;
  margin: 2rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.login-card:hover {
  border: solid .12rem var(--main-color-zion-orange);
  box-shadow: 0px 0px 7px rgba(255, 142, 49, 0.73);
  /*z-index: 900;*/
}

.login-header {
  text-align: center;
  margin-bottom: 1rem;
}

.login-logo {
  width: 150px;
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 12px rgba(255, 142, 49, 0.3));
  transition: all 0.3s ease;
}

.login-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 16px rgba(255, 142, 49, 0.4));
}

.login-title {
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  font-family: 'Unbounded', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.login-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 0.5rem;
  position: relative;
}

.form-label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: block;
}

.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px !important;
  color: #ffffff;
  font-size: 1rem;
  padding: 0.75rem 1.25rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--main-color-zion-orange);
  border-radius: 12px;
  box-shadow: 0 0 0 4px rgba(255, 142, 49, 0.1);
  color: #ffffff;
  outline: none;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.input-group {
  position: relative;
  border-radius: 12px;
}

#email.form-control,
#password.form-control {
  border-radius: 12px;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
  z-index: 3;
  transition: color 0.3s ease;
}

.form-control:focus + .input-icon {
  color: var(--main-color-zion-orange);
}

.input-group .form-control {
  padding-left: 3rem;
}

.btn-login {
  background: linear-gradient(135deg, #c44206 0%, #d37e1c 100%);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.5rem;
  padding: 1rem 2rem;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(255, 142, 49, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-login:hover::before {
  left: 100%;
}

.btn-login:hover {
  background: linear-gradient(135deg, #d37e1c 0%, #ff8e31 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 142, 49, 0.4);
}

.btn-login:active {
  transform: translateY(0);
}

.login-footer {
  text-align: center;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.help-link {
  color: var(--main-color-zion-orange);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: rgba(255, 142, 49, 0.1);
  border: 1px solid rgba(255, 142, 49, 0.2);
}

.help-link:hover {
  color: #ffffff;
  background: rgba(255, 142, 49, 0.2);
  border-color: rgba(255, 142, 49, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 142, 49, 0.2);
}

.help-link i {
  font-size: 1.1rem;
}

.alert {
  border: none;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
  border-left: 4px solid;
}

.alert-danger {
  background: rgba(220, 53, 69, 0.1);
  border-left-color: #dc3545;
  color: #ff6b6b;
}

.alert-warning {
  background: rgba(255, 193, 7, 0.1);
  border-left-color: #ffc107;
  color: #ffd54f;
}

.alert-success {
  background: rgba(40, 167, 69, 0.1);
  border-left-color: #28a745;
  color: #6bcf7f;
}

.btn-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

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

.page-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  z-index: 10;
}

.page-footer .credits {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.page-footer .copyright {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-card {
    margin: 1rem;
    padding: 2rem;
    border-radius: 20px;
  }

  .login-title {
    font-size: 1.75rem;
  }

  .login-logo {
    width: 100px;
  }

  .form-control {
    padding: 0.875rem 1rem;
  }

  .input-group .form-control {
    padding-left: 2.5rem;
  }

  .input-icon {
    left: 0.75rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 1.5rem;
    margin: 0.5rem;
  }

  .login-title {
    font-size: 1.5rem;
  }

  .login-logo {
    width: 80px;
  }
}
