* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    sans-serif;
  background: linear-gradient(135deg, #0a1628 0%, #0d1f3c 50%, #0a1628 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-box {
  background: rgba(15, 25, 45, 0.95);
  border-radius: 12px;
  padding: 44px 42px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  width: min(460px, 94vw);
}

.auth-title {
  color: #5fd4d4;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.auth-description {
  color: #7a8ba3;
  font-size: 0.9rem;
  margin-bottom: 30px;
  line-height: 1.5;
}

.input-group {
  margin-bottom: 20px;
}

.input-label {
  display: block;
  color: #7a8ba3;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input {
  width: 100%;
  background: transparent;
  border: 1.5px solid #3a4a5e;
  border-radius: 8px;
  padding: 15px 52px 15px 18px;
  color: #ffffff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.password-input:focus {
  border-color: #5fd4d4;
}

.password-input::placeholder {
  color: #4a5a6e;
}

.toggle-password {
  position: absolute;
  right: 12px;
  background: #ffffff;
  border-radius: 6px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.key-icon {
  width: 17px;
  height: 17px;
  color: #24364f;
  transform: rotate(90deg);
}

.login-button {
  width: 100%;
  background: linear-gradient(135deg, #4ecdc4 0%, #44a8a0 100%);
  border: none;
  border-radius: 8px;
  padding: 15px;
  color: #0a1628;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  margin-top: 10px;
}

@media (max-width: 600px) {
  .auth-box {
    width: 100%;
    padding: 34px 22px;
  }
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(78, 205, 196, 0.4);
}

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

.error-message {
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-top: 15px;
  text-align: center;
  min-height: 20px;
}

.welcome-box {
  background: rgba(15, 25, 45, 0.95);
  border-radius: 12px;
  padding: 60px 35px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  text-align: center;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

.contact-text {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 20px;
  text-align: center;
}

.surprise-title {
  color: #ff6b9d;
  font-size: 3.2rem;
  font-weight: 800;
  text-shadow:
    0 0 20px rgba(255, 107, 157, 0.6),
    0 0 40px rgba(255, 107, 157, 0.4),
    0 0 60px rgba(255, 107, 157, 0.2);
  animation:
    surpriseEntry 1s ease-out,
    pulse 2s ease-in-out infinite;
  margin-bottom: 30px;
}

@keyframes surpriseEntry {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-10deg);
  }
  50% {
    transform: scale(1.2) rotate(5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    text-shadow:
      0 0 20px rgba(255, 107, 157, 0.6),
      0 0 40px rgba(255, 107, 157, 0.4),
      0 0 60px rgba(255, 107, 157, 0.2);
  }
  50% {
    text-shadow:
      0 0 30px rgba(255, 107, 157, 0.8),
      0 0 60px rgba(255, 107, 157, 0.6),
      0 0 90px rgba(255, 107, 157, 0.4);
  }
}

.message-container {
  animation: fadeInUp 1s ease-out forwards;
}

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

.love-message {
  color: #5fd4d4;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 40px;
  text-shadow: 0 0 10px rgba(95, 212, 212, 0.3);
}

.logo-grid {
  display: flex;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.logo-link {
  display: block;
  width: 140px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.logo-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(95, 212, 212, 0.35);
}

.visit-counter {
  color: #d7e3f6;
  text-align: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.counter-label {
  font-size: 1rem;
  font-weight: 600;
  color: #d7e3f6;
}

.counter-digits {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.digit-box {
  min-width: 36px;
  height: 44px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid rgba(95, 212, 212, 0.35);
  background: rgba(5, 14, 28, 0.85);
  color: #5fd4d4;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 44px;
  box-shadow: inset 0 0 10px rgba(95, 212, 212, 0.2);
}

.gallery-photo {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  opacity: 0;
  animation: photoFadeIn 0.6s ease-out forwards;
}

.gallery-photo:nth-child(1) {
  animation-delay: 0.1s;
}
.gallery-photo:nth-child(2) {
  animation-delay: 0.2s;
}
.gallery-photo:nth-child(3) {
  animation-delay: 0.3s;
}
.gallery-photo:nth-child(4) {
  animation-delay: 0.4s;
}
.gallery-photo:nth-child(5) {
  animation-delay: 0.5s;
}
.gallery-photo:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes photoFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.gallery-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(95, 212, 212, 0.3);
}

.hidden {
  display: none;
}

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

.auth-box,
.welcome-box {
  animation: fadeIn 0.4s ease-out;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-8px);
  }
  40%,
  80% {
    transform: translateX(8px);
  }
}

.shake {
  animation: shake 0.5s ease-in-out;
  border-color: #ff6b6b !important;
}
