/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Poppins:wght@400;500;600&display=swap');

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

/* ---------- GLOBAL LAYOUT ---------- */
body {
  background: #0a0a0a; /* Professional Dark Background */
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Poppins", sans-serif;
  overflow: hidden;
  padding: 40px;
}

/* Main layout */
.main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  gap: 80px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  padding: 40px 60px;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.1);
}

/* Slider */
.slider {
  position: relative;
  width: 400px;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.card {
  position: absolute;
  width: 230px;
  height: 430px;
  border-radius: 25px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transform-origin: center;
  transition: transform 1s ease, opacity 1s ease;
  border: 1px solid #333;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

/* Animations */
.card1 {
  transform: translateX(-220px) scale(0.8);
  opacity: 0.6;
  z-index: 1;
  animation: move1 12s infinite ease-in-out;
}

.card2 {
  transform: translateX(0) scale(1);
  opacity: 1;
  z-index: 3;
  animation: move2 12s infinite ease-in-out;
  border: 2px solid #FFD700;
}

.card3 {
  transform: translateX(220px) scale(0.8);
  opacity: 0.6;
  z-index: 1;
  animation: move3 12s infinite ease-in-out;
}

@keyframes move1 {
  0%, 25% { transform: translateX(-220px) scale(0.8); opacity: 0.6; z-index: 1; }
  33%, 58% { transform: translateX(0) scale(1); opacity: 1; z-index: 3; border: 2px solid #FFD700;}
  66%, 91% { transform: translateX(220px) scale(0.8); opacity: 0.6; z-index: 1; border: 1px solid #333;}
  100% { transform: translateX(-220px) scale(0.8); opacity: 0.6; z-index: 1; border: 1px solid #333;}
}

@keyframes move2 {
  0%, 25% { transform: translateX(0) scale(1); opacity: 1; z-index: 3; border: 2px solid #FFD700;}
  33%, 58% { transform: translateX(220px) scale(0.8); opacity: 0.6; z-index: 1; border: 1px solid #333;}
  66%, 91% { transform: translateX(-220px) scale(0.8); opacity: 0.6; z-index: 1; border: 1px solid #333;}
  100% { transform: translateX(0) scale(1); opacity: 1; z-index: 3; border: 2px solid #FFD700;}
}

@keyframes move3 {
  0%, 25% { transform: translateX(220px) scale(0.8); opacity: 0.6; z-index: 1; border: 1px solid #333;}
  33%, 58% { transform: translateX(-220px) scale(0.8); opacity: 0.6; z-index: 1; border: 1px solid #333;}
  66%, 91% { transform: translateX(0) scale(1); opacity: 1; z-index: 3; border: 2px solid #FFD700;}
  100% { transform: translateX(220px) scale(0.8); opacity: 0.6; z-index: 1; border: 1px solid #333;}
}

/* ---------- LOGIN FORM SECTION ---------- */
.container {
  max-width: 420px;
  text-align: center;
}

.form-title {
  font-family: "Great Vibes", cursive;
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 25px;
  text-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
}

.form-card {
  background: #1a1a1a;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  padding: 30px;
  transition: 0.3s ease;
  text-align: left;
  border: 1px solid #333;
}

.form-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.7);
  border-color: #FFD700;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #e0e0e0;
  font-weight: 500;
}

input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 15px;
  border: 1px solid #444;
  border-radius: 8px;
  background: #222;
  color: #fff;
  outline: none;
}

input:focus {
  border-color: #FFD700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background-color: #FFD700;
  color: #000;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}

button:hover {
  background-color: #e6c200;
}

button:disabled {
  background-color: #555;
  color: #888;
  cursor: not-allowed;
}

/* Password Checklist */
#password-checklist {
  background: #2a2a2a;
  padding: 12px;
  border-radius: 8px;
  margin-top: -10px;
  margin-bottom: 15px;
  border: 1px solid #444;
  display: none;
}

.rule {
  font-size: 0.9em;
  color: #bbb;
}

.rule.valid {
  color: #FFD700;
  font-weight: 600;
}

#match-error {
  color: #ff4d4d;
  margin-top: -8px;
  margin-bottom: 10px;
  font-size: 0.9em;
  min-height: 18px;
}

p {
  text-align: center;
  color: #aaa;
  margin-top: 20px;
}

a {
  color: #FFD700;
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .main {
    flex-direction: column;
    gap: 50px;
    padding: 30px;
  }

  .slider {
    width: 320px;
    height: 420px;
  }

  .card {
    width: 180px;
    height: 350px;
  }
}
