:root {
  --primary-yellow: #FFD700;
  --light-yellow: #FFF9E6;
  --medium-yellow: #FFE680;
  --dark-yellow: #CCAC00;
  --white: #ffffff;
  --black: #000000;
  --text-dark: #202124;
  --text-light: #5f6368;
  --gray-dark: #1a1a1a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: linear-gradient(rgba(0, 0, 0, 0.282), rgba(0, 0, 0, 0.255)), url("../images/7.jpg");
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

/* Animated Geometric Shapes Background */
.geometric-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  opacity: 0.1;
  background: var(--black);
  border: 1px solid rgba(0, 0, 0, 0.736);
  animation: float 15s infinite ease-in-out;
  color: #000000 !important;
}

.shape:nth-child(1) {
  width: 120px;
  height: 120px;
  top: 10%;
  left: 5%;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation-delay: 0s;
}

.shape:nth-child(2) {
  width: 80px;
  height: 80px;
  top: 70%;
  right: 10%;
  border-radius: 50%;
  animation-delay: -2s;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.shape:nth-child(3) {
  width: 150px;
  height: 150px;
  bottom: 10%;
  left: 15%;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation-delay: -5s;
  opacity: 0.08;
}

.shape:nth-child(4) {
  width: 100px;
  height: 100px;
  top: 20%;
  right: 15%;
  transform: rotate(45deg);
  animation-delay: -3s;
  opacity: 0.12;
}

.shape:nth-child(5) {
  width: 60px;
  height: 60px;
  bottom: 30%;
  right: 20%;
  border-radius: 50%;
  animation-delay: -7s;
}

.shape:nth-child(6) {
  width: 200px;
  height: 100px;
  top: 50%;
  left: 5%;
  border-radius: 50px;
  animation-delay: -10s;
  opacity: 0.15;
}

.shape:nth-child(7) {
  width: 90px;
  height: 90px;
  top: 60%;
  left: 70%;
  clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
  animation-delay: -8s;
  opacity: 0.1;
}

.shape:nth-child(8) {
  width: 180px;
  height: 180px;
  top: 15%;
  left: 50%;
  border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
  animation-delay: -12s;
  opacity: 0.07;
}

.shape:nth-child(9) {
  width: 70px;
  height: 70px;
  bottom: 15%;
  right: 5%;
  transform: rotate(30deg);
  animation-delay: -6s;
  opacity: 0.12;
}

.shape:nth-child(10) {
  width: 140px;
  height: 140px;
  top: 80%;
  left: 30%;
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  animation-delay: -4s;
  opacity: 0.09;
}

/* Animated connecting lines */
.connecting-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, var(--black));
  opacity: 0.1;
  animation: pulse 8s infinite ease-in-out;
}

.connecting-line:nth-child(11) {
  top: 20%;
  left: 10%;
  width: 150px;
  animation-delay: 0s;
}

.connecting-line:nth-child(12) {
  top: 60%;
  right: 15%;
  width: 120px;
  animation-delay: -2s;
}

.connecting-line:nth-child(13) {
  bottom: 40%;
  left: 20%;
  width: 100px;
  animation-delay: -4s;
}

/* Floating dots */
.floating-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--primary-yellow);
  border-radius: 50%;
  opacity: 0.15;
  animation: floatDot 10s infinite linear;
}

.floating-dot:nth-child(14) {
  top: 25%;
  left: 85%;
  animation-delay: 0s;
}

.floating-dot:nth-child(15) {
  top: 45%;
  left: 90%;
  animation-delay: -3s;
}

.floating-dot:nth-child(16) {
  top: 65%;
  left: 88%;
  animation-delay: -5s;
}

.floating-dot:nth-child(17) {
  top: 85%;
  left: 92%;
  animation-delay: -7s;
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(5deg);
  }
  50% {
    transform: translateY(-10px) rotate(-5deg);
  }
  75% {
    transform: translateY(10px) rotate(3deg);
  }
}

@keyframes floatDot {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0.15;
  }
  25% {
    transform: translateY(-30px) translateX(10px);
    opacity: 0.1;
  }
  50% {
    transform: translateY(0) translateX(20px);
    opacity: 0.2;
  }
  75% {
    transform: translateY(30px) translateX(10px);
    opacity: 0.1;
  }
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0.15;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.2;
  }
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, rgba(255, 215, 0, 0.03) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

.login-container {
  display: flex;
  width: 100%;
  max-width: 700px;
  height: 450px;
  background: linear-gradient(135deg, 
              rgba(0, 0, 0, 0.9) 0%, 
              rgba(26, 26, 26, 0.95) 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(255, 215, 0, 0.1),
              0 0 30px rgba(255, 215, 0, 0.1);
  position: relative;
  z-index: 2;
  border: 1px solid var(--primary-yellow);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.image-section {
  flex: 1;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url("../images/121.png");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 25px;
  color: var(--primary-yellow);
  text-align: center;
  position: relative;
  border-right: 2px solid var(--primary-yellow);
  overflow: hidden;
}

/* Animated border effect for image section */
.image-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    transparent 30%,
    rgba(255, 215, 0, 0.1) 50%,
    transparent 70%
  );
  animation: borderFlow 4s linear infinite;
  pointer-events: none;
}

@keyframes borderFlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.quote-container {
  max-width: 280px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.quote-container h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  letter-spacing: 1px;
  color: var(--primary-yellow);
  animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
  0% {
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5),
                 0 0 10px rgba(255, 215, 0, 0.3),
                 0 0 15px rgba(255, 215, 0, 0.2);
  }
  100% {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8),
                 0 0 20px rgba(255, 215, 0, 0.5),
                 0 0 30px rgba(255, 215, 0, 0.3);
  }
}

.quote-container p {
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 400;
  font-family: 'Montserrat', sans-serif;
  color: var(--white);
  animation: fadeIn 1.5s ease-out;
}

.form-section {
  flex: 1;
  background: linear-gradient(135deg, 
              rgba(26, 26, 26, 0.95) 0%, 
              rgba(0, 0, 0, 0.9) 100%);
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Subtle geometric pattern overlay */
.form-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.02) 2px, transparent 3px),
    radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.02) 2px, transparent 3px);
  background-size: 50px 50px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
}

.form-content {
  max-width: 280px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.logo-container {
  text-align: center;
  margin-bottom: -25px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-container img {
  width: 130px;
  height: 130px;
  object-fit: contain;
}

.page-title {
  text-align: center;
  margin-bottom: 18px;
  color: var(--primary-yellow);
  font-weight: 900;
  font-size: 1.5rem;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 1px;
  animation: fadeIn 1s ease-out 0.2s both;
}

.form-group {
  position: relative;
  margin-bottom: 12px;
  animation: fadeIn 1s ease-out 0.4s both;
}

.form-control, .form-select {
  border-radius: 6px;
  padding: 8px 12px;
  border: 1px solid var(--medium-yellow);
  background-color: rgba(0, 0, 0, 0.8);
  margin-bottom: 12px;
  font-size: 0.85rem;
  width: 100%;
  color: var(--white);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.form-control::placeholder {
  color: #888;
  transition: color 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-yellow);
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.3),
              inset 0 0 10px rgba(255, 215, 0, 0.1);
  outline: none;
  transform: translateY(-2px);
}

.form-control:focus::placeholder {
  color: var(--medium-yellow);
}

.captcha-container {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  gap: 8px;
  animation: fadeIn 1s ease-out 0.6s both;
}

.captcha-display {
  border: 1px solid var(--medium-yellow);
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.8);
  width: 90px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  color: var(--primary-yellow);
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
}

.captcha-display::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
              transparent 0%, 
              rgba(255, 215, 0, 0.1) 50%, 
              transparent 100%);
  animation: shine 2s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

#refreshCaptcha {
  background-color: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--medium-yellow);
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--primary-yellow);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

#refreshCaptcha:hover {
  background-color: var(--primary-yellow);
  color: var(--black);
  transform: rotate(180deg);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.captcha-input {
  flex: 1;
}

.captcha-input input {
  padding: 6px 8px;
  font-size: 0.85rem;
  margin-bottom: 0px !important;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--medium-yellow);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.btn-login {
  background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--dark-yellow) 100%);
  border: none;
  border-radius: 6px;
  padding: 8px;
  color: var(--black);
  font-weight: 600;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  display: block;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  animation: fadeIn 1s ease-out 0.8s both;
}

.btn-login::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.5s ease;
  z-index: -1;
}

.btn-login:hover {
  background: linear-gradient(135deg, var(--dark-yellow) 0%, var(--primary-yellow) 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4),
              0 0 30px rgba(255, 215, 0, 0.2);
}

.btn-login:hover::before {
  left: 100%;
}

.btn-login:active {
  transform: translateY(-1px);
}

.footer {
  text-align: center;
  font-size: 0.75rem;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--medium-yellow);
  color: var(--white);
  animation: fadeIn 1s ease-out 1s both;
}

.footer a {
  color: var(--primary-yellow);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-yellow);
  transition: width 0.3s ease;
}

.footer a:hover {
  color: var(--white);
}

.footer a:hover::after {
  width: 100%;
}

.ip-address {
  text-align: center;
  font-size: 0.7rem;
  margin-top: 5px;
  color: var(--primary-yellow);
  animation: fadeIn 1s ease-out 0.9s both;
}

/* Travel Icons */
.travel-icon-left {
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 130px;
  height: 100px;
  opacity: 0.8;
  filter: invert(1) sepia(1) saturate(5) hue-rotate(0deg);
  animation: float 8s infinite ease-in-out;
  animation-delay: -1s;
}

.travel-icon-right {
  position: absolute;
  top: 15px;
  right: 0px;
  width: 150px;
  height: 50px;
  opacity: 0.8;
  filter: invert(1) sepia(1) saturate(5) hue-rotate(0deg);
  animation: float 10s infinite ease-in-out;
  animation-delay: -2s;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
    height: auto;
    max-width: 380px;
    border: 1px solid var(--primary-yellow);
  }

  .image-section {
    display: none;
  }

  .form-section {
    padding: 20px;
  }
  
  .form-content {
    max-width: 100%;
  }
  
  .travel-icon-left, .travel-icon-right {
    display: none;
  }
  
  /* Reduce animation intensity on mobile */
  .shape {
    animation-duration: 20s;
  }
}

/* Form element animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert {
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.8rem;
  background-color: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--primary-yellow);
  color: var(--primary-yellow);
  backdrop-filter: blur(10px);
}

.errorlist {
  color: #ff4444;
  font-size: 0.75rem;
  margin-top: 3px;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.btn-close {
  padding: 0.4rem;
  color: var(--primary-yellow);
  transition: transform 0.3s ease;
}

.btn-close:hover {
  transform: rotate(90deg);
}

/* Gold accent lines */
.form-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
              transparent, 
              var(--primary-yellow), 
              transparent);
  z-index: 1;
}

.login-container::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  pointer-events: none;
  animation: borderPulse 3s infinite ease-in-out;
}

@keyframes borderPulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
}

/* Add glitter particles */
.glitter {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--dark-yellow);
  border-radius: 50%;
  opacity: 0;
  animation: glitter 5s infinite linear;
}

.glitter:nth-child(18) {
  top: 10%;
  left: 20%;
  animation-delay: 0s;
}

.glitter:nth-child(19) {
  top: 30%;
  left: 80%;
  animation-delay: -1s;
}

.glitter:nth-child(20) {
  top: 60%;
  left: 40%;
  animation-delay: -2s;
}

.glitter:nth-child(21) {
  top: 80%;
  left: 60%;
  animation-delay: -3s;
}

@keyframes glitter {
  0%, 100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 0.8;
    transform: scale(1);
  }
}