/* Travel Agency Login Theme */

/* Global Travel Theme Variables */
:root {
  --travel-primary: #306f5f;
  --travel-secondary: #d4af37;
  --travel-accent: #f59e0b;
  --travel-gradient: linear-gradient(135deg, #306f5f 0%, #2a5f4f 50%, #1e4a3f 100%);
  --travel-shadow: 0 10px 25px rgba(48, 111, 95, 0.15);
  --travel-shadow-hover: 0 15px 35px rgba(48, 111, 95, 0.25);
}

/* Beautiful Travel Background */
body.my-login-page {
  background-image: url('/images/travel-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: "Noto Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  position: relative;
  min-height: 100vh;
  background-color: #306f5f; /* Fallback color if image doesn't load */
}

/* Overlay for better text visibility */
body.my-login-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(48, 111, 95, 0.7) 0%, rgba(42, 95, 79, 0.5) 100%);
  z-index: -1;
}

/* Enhanced Card */
.my-login-page .card {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px !important;
  border: 1px solid rgba(48, 111, 95, 0.2) !important;
  box-shadow: 0 20px 40px rgba(48, 111, 95, 0.3) !important;
  overflow: hidden;
  position: relative;
  animation: cardAppear 0.8s ease-out forwards;
  transform: translateY(20px);
  opacity: 0;
}

@keyframes cardAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card Decorative Border */
.my-login-page .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #306f5f, #d4af37, #2a5f4f);
  z-index: 1;
  animation: borderPulse 3s ease-in-out infinite alternate;
}

@keyframes borderPulse {
  0% {
    box-shadow: 0 0 10px rgba(48, 111, 95, 0.3);
    opacity: 0.8;
  }
  100% {
    box-shadow: 0 0 20px rgba(48, 111, 95, 0.6);
    opacity: 1;
  }
}

/* Travel Decorative Elements */
.my-login-page .card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    url('/images/plane-icon.png') no-repeat top 20px left 20px / 40px,
    url('/images/globe-icon.png') no-repeat bottom 20px right 20px / 40px;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

/* Enhanced Card Title */
.login-title {
  color: var(--travel-primary);
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 35px;
  position: relative;
  display: block;
  width: 100%;
}

/* Title Decoration */
.login-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 4px;
  background: linear-gradient(90deg, #306f5f, #d4af37);
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(48, 111, 95, 0.3);
}

.login-title::before {
  content: '✈️';
  position: absolute;
  left: 50%;
  top: -30px;
  transform: translateX(-50%);
  font-size: 1.5rem;
  animation: floatPlane 3s ease-in-out infinite;
}

@keyframes floatPlane {
  0%, 100% {
    transform: translateX(-50%) translateY(0) rotate(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px) rotate(5deg);
  }
}

/* Enhanced Form Controls */
.my-login-page .form-control {
  border: 2px solid rgba(48, 111, 95, 0.2);
  border-radius: 50px;
  padding: 16px 25px;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 10px rgba(48, 111, 95, 0.05);
  text-align: center;
}

.my-login-page .form-control:focus {
  border-color: var(--travel-primary);
  box-shadow: 0 0 0 4px rgba(48, 111, 95, 0.2), 0 5px 15px rgba(48, 111, 95, 0.1);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.my-login-page .form-control::placeholder {
  color: rgba(48, 111, 95, 0.6);
  font-style: italic;
  transition: all 0.3s ease;
}

.my-login-page .form-control:focus::placeholder {
  opacity: 0.5;
  transform: translateX(10px);
}

/* Enhanced Labels */
.login-label {
  color: var(--travel-primary);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
  display: block;
  text-align: center;
  letter-spacing: 0.5px;
}

/* Form Icons */
.form-group {
  position: relative;
}

.form-group:nth-child(1)::before {
  content: '👤';
  position: absolute;
  right: 20px;
  top: 53px;
  font-size: 1.2rem;
  opacity: 0.5;
  z-index: 10;
  transition: all 0.3s ease;
}

.form-group:nth-child(2)::before {
  content: '🔒';
  position: absolute;
  right: 20px;
  top: 53px;
  font-size: 1.2rem;
  opacity: 0.5;
  z-index: 10;
  transition: all 0.3s ease;
}

.form-group:hover::before {
  opacity: 0.8;
  transform: scale(1.1);
}

/* Beautiful Login Button */
.login-btn {
  background: var(--travel-gradient) !important;
  border: none !important;
  border-radius: 50px !important; /* Rounded button */
  padding: 14px 30px !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: white !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  box-shadow: var(--travel-shadow), 0 0 0 0 rgba(48, 111, 95, 0) !important;
  position: relative;
  overflow: hidden;
  margin-top: 30px;
  width: 100%;
  letter-spacing: 1px;
}

.login-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--travel-shadow-hover), 0 0 20px rgba(48, 111, 95, 0.4) !important;
  background: linear-gradient(135deg, #d4af37 0%, #306f5f 50%, #2a5f4f 100%) !important;
}

.login-btn:active {
  transform: translateY(-2px) scale(1.01);
  box-shadow: var(--travel-shadow), 0 0 10px rgba(48, 111, 95, 0.2) !important;
}

/* Button Animation */
.login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.7s;
}

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

/* Button Icon */
.login-btn::after {
  content: '✈️';
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.login-btn:hover::after {
  opacity: 1;
  right: 20px;
}

/* Button Pulse Effect */
@keyframes buttonPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(48, 111, 95, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(48, 111, 95, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(48, 111, 95, 0);
  }
}

.login-btn {
  animation: buttonPulse 2s infinite;
}

/* Login Container */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

/* Card Wrapper */
.card-wrapper {
  width: 450px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

/* Form Group Spacing */
.form-group {
  margin-bottom: 25px;
}

/* Travel Agency Logo */
.travel-logo {
  text-align: center;
  margin-bottom: 15px;
  animation: fadeInDown 1s ease-out;
  margin-left: 15px;
}

.travel-logo img {
  max-width: 400px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(48, 111, 95, 0.2);
  border: 3px solid rgba(48, 111, 95, 0.3);
  transition: all 0.3s ease;
}

.travel-logo img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(48, 111, 95, 0.3);
}

/* Travel Tagline */
.travel-tagline {
  text-align: center;
  color: white;
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 25px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 1s ease-out;
  background: rgba(48, 111, 95, 0.2);
  padding: 10px 30px;
  border-radius: 30px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(48, 111, 95, 0.3);
  letter-spacing: 1px;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Additional Card Styling */
.card-body {
  padding: 40px 30px !important;
  position: relative;
  z-index: 2;
}

/* Floating Elements Animation */
.login-container::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(48, 111, 95, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.1) 0%, transparent 30%);
  animation: bgPulse 8s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes bgPulse {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  100% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* Responsive Adjustments */
@media (max-width: 576px) {
  .card-wrapper {
    width: 90%;
  }
  
  .login-title {
    font-size: 1.8rem;
  }
  
  .travel-tagline {
    font-size: 1.2rem;
    padding: 8px 20px;
  }
  
  .my-login-page .form-control {
    padding: 12px 20px;
    font-size: 1rem;
  }
  
  .form-group:nth-child(1)::before,
  .form-group:nth-child(2)::before {
    top: 48px;
    right: 15px;
    font-size: 1rem;
  }
  
  .login-btn {
    padding: 12px 25px !important;
    font-size: 1.1rem !important;
  }
} 