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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #0B1120;
  overflow: hidden;
}

/* ========== LAYOUT ========== */
.container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* ========== LEFT SIDE ========== */
.left {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.left-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1400&q=80')
              no-repeat center center;
  background-size: cover;
  animation: zoomBg 20s ease-in-out infinite alternate;
}

/* ---- Animation 1 : zoom lent du fond ---- */
@keyframes zoomBg {
  0%   { transform: scale(1);   }
  100% { transform: scale(1.1); }
}

/* dark gradient overlay */
.left::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(11, 17, 32, 0.9) 0%,
    rgba(11, 17, 32, 0.3) 50%,
    rgba(11, 17, 32, 0.5) 100%
  );
  z-index: 1;
}

.overlay {
  position: absolute;
  bottom: 50px;
  left: 50px;
  z-index: 2;
  color: #ffffff;
}

.overlay-logo {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.5));
}

.tagline {
  font-size: 16px;
  opacity: 0.75;
  font-weight: 300;
  color: #94A3B8;
}

/* ========== RIGHT SIDE ========== */
.right {
  flex: 1;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;

  /* ---- Animation 2 : glissement depuis la droite ---- */
  animation: slideIn 1s ease forwards;
}

/* subtle cyan tint at top */
.right::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(
    to bottom,
    rgba(0, 212, 255, 0.03) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

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

/* ========== LOGIN BOX ========== */
.login-box {
  width: 360px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;

  /* ---- Animation 3 : texte monte doucement ---- */
  animation: fadeUp 1.2s ease;
}

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

/* ========== LOGO ========== */
.logo {
  width: 280px;
  height: 280px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: -30px;

  /* ---- Animation 5 : glow pulse ---- */
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%   { filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.3)); }
  50%  { filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.6)); }
  100% { filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.3)); }
}

.login-box h1 {
  font-size: 36px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 4px;
}

.subtitle {
  font-size: 15px;
  color: #64748B;
  margin-bottom: 12px;
}

/* ========== SEPARATOR ========== */
.separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  width: 100%;
}

.separator span {
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.separator p {
  font-size: 13px;
  color: #94A3B8;
  white-space: nowrap;
}

/* ========== GOOGLE BUTTON (custom) ========== */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  padding: 14px 24px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.google-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 212, 255, 0.12);
  border-color: #00D4FF;
}

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

.google-icon {
  width: 22px;
  height: 22px;
}

/* ========== FOOTER TEXT ========== */
.footer-text {
  font-size: 12px;
  color: #94A3B8;
}

.footer-text strong {
  color: #00D4FF;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .left {
    display: none;
  }

  .right {
    flex: 1;
    width: 100%;
  }

  .login-box {
    width: 90%;
    max-width: 360px;
  }
}
