@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: auto;
  padding: 20px;
  min-width: 1200px;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background-image: url('/7a207538-c3c9-47cc-9618-a5d84d33f658.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.7) contrast(1.1);
  z-index: -2;
  border-bottom-left-radius: 20px;
  box-shadow: -5px 5px 15px rgba(0,0,0,0.2);
}

.bottom-left-image {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 300px;
  height: 300px;
  background-image: url('/7a207538-c3c9-47cc-9618-a5d84d33f658 (1).jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.7) contrast(1.1);
  z-index: -2;
  border-top-right-radius: 20px;
  box-shadow: 5px -5px 15px rgba(0,0,0,0.2);
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  z-index: -1;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.container {
  width: 100%;
  padding: 20px;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.login-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  max-width: 450px;
  width: 90%;
  margin: 0 auto;
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.logo {
  text-align: center;
  margin-bottom: 20px;
}

.logo svg {
  width: 70px;
  height: 70px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.site-name {
  text-align: center;
  color: #4A90E2;
  font-size: 2.2em;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(45deg, #4A90E2, #357ABD);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

h2 {
  color: #333;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 600;
}

.input-group {
  position: relative;
  margin-bottom: 25px;
}

.input-group input {
  width: 100%;
  padding: 8px 40px 8px 15px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  transition: 0.3s ease;
}

.input-group input:focus {
  border-color: #4A90E2;
  outline: none;
}

.input-group label {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  pointer-events: none;
  transition: 0.3s ease;
}

.input-group input:focus + label,
.input-group input:valid + label {
  transform: translateY(-130%);
  font-size: 14px;
  color: #4A90E2;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.input-group select {
  width: 100%;
  padding: 8px 40px 8px 15px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  transition: 0.3s ease;
  background-color: white;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.input-group select:focus {
  border-color: #4A90E2;
  outline: none;
}

.select-group {
  position: relative;
}

.select-group::after {
  content: '';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #666;
  pointer-events: none;
}

.select-group .input-icon {
  left: 15px;
}

.login-btn {
  width: 100%;
  padding: 10px;
  background: #4A90E2;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s ease;
}

.login-btn:hover {
  background: #357ABD;
  transform: translateY(-2px);
}

.links {
  margin-top: 20px;
  text-align: center;
}

.links a {
  color: #4A90E2;
  text-decoration: none;
  margin: 0 10px;
  font-size: 14px;
  transition: 0.3s ease;
}

.links a:hover {
  color: #357ABD;
}

.signature {
  display: none;
}

.vertical-signature {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  padding: 10px 20px;
  border-radius: 20px;
  color: white;
  font-family: 'Cairo', sans-serif;
  z-index: 1000;
}

.vertical-signature span {
  display: inline-block;
  animation: glow 2s ease-in-out infinite;
}

.bubble {
  position: fixed;
  bottom: -20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
  animation: rise var(--rise-duration) ease-in forwards, sway var(--sway-duration) ease-in-out infinite alternate;
}

.bubble::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes rise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.5;
  }
  80% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-100vh) scale(0);
    opacity: 0;
  }
}

@keyframes sway {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(var(--sway-amount));
  }
}

.image-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.1)
  );
  z-index: -1;
  border-bottom-left-radius: 20px;
}

.historical-box {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border: 2px solid #d4af37;
  font-family: 'Cairo', serif;
  animation: fadeIn 1s ease-out;
  z-index: 1000;
}

.historical-box::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid #d4af37;
  border-radius: 18px;
  z-index: -1;
}

.historical-box h3 {
  color: #8b4513;
  font-size: 1.5em;
  margin-bottom: 15px;
  text-align: center;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.historical-box p {
  color: #5c3a21;
  line-height: 1.6;
  text-align: justify;
  margin: 0;
}

.historical-box::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 10px;
  pointer-events: none;
}

.ornament {
  width: 50px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40'%3E%3Cpath d='M0,20 Q25,0 50,20 T100,20' fill='none' stroke='%23d4af37' stroke-width='2'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  margin: 10px auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

.mouse-light {
  position: fixed;
  pointer-events: none;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, 
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0) 60%
  );
  transform: translate(-50%, -50%);
  mix-blend-mode: overlay;
  z-index: 999;
  transition: opacity 0.3s;
  opacity: 0;
}

.color-ring {
  position: fixed;
  pointer-events: none;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #ff6b6b,
    #f06595,
    #cc5de8,
    #5c7cfa,
    #51cf66,
    #ffd43b,
    #ff6b6b
  );
  transform: translate(-50%, -50%);
  mix-blend-mode: overlay;
  filter: blur(15px);
  opacity: 0.7;
  z-index: 999;
  animation: spin 4s linear infinite;
}

@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) rotate(180deg) scale(1.1);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg) scale(1);
  }
}

.date-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 15px;
  margin: 15px auto;
  max-width: 400px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border: 1px solid rgba(74, 144, 226, 0.3);
}

.date-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 5px 0;
  padding: 5px 0;
  border-bottom: 1px solid rgba(74, 144, 226, 0.2);
}

.date-row:last-child {
  border-bottom: none;
}

.date-label {
  color: #4A90E2;
  font-weight: 600;
}

.date-value {
  color: #333;
  text-align: center;
  width: 100%;
}

/* Add WhatsApp Button Styles */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn svg {
  width: 35px;
  height: 35px;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(74, 144, 226, 0.5);
  border-radius: 10px;
  border: 3px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 144, 226, 0.7);
}

@media (max-width: 480px) {
  .login-box {
    padding: 20px;
    width: 95%;
  }
  
  .whatsapp-btn {
    width: 50px;
    height: 50px;
    bottom: 20px;
    left: 20px;
  }
  
  .whatsapp-btn svg {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 1200px) {
  body {
    min-width: auto;
  }

  .historical-box {
    position: static;
    transform: none;
    margin: 20px auto;
    width: 90%;
    max-width: 300px;
  }

  .vertical-signature {
    position: static;
    transform: none;
    margin: 20px auto;
    writing-mode: horizontal-tb;
    text-align: center;
  }
}