@import url('global.css');

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, var(--color-navy-light) 0%, var(--color-black) 100%);
  overflow: hidden;
}

/* Background floating elements */
body::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(182, 155, 93, 0.05) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  border-radius: 50%;
  z-index: 0;
}

body::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(230, 230, 230, 0.03) 0%, transparent 70%);
  bottom: -200px;
  right: -200px;
  border-radius: 50%;
  z-index: 0;
}

.gate-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 450px;
  padding: 50px 40px;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.gate-container.unlocked {
  transform: scale(1.1) translateY(-20px);
  opacity: 0;
  filter: blur(10px);
}

.brand-title {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 4px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--color-silver-dark);
  letter-spacing: 2px;
  margin-bottom: 40px;
  text-transform: uppercase;
}

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

.password-input {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 16px;
  text-align: center;
  letter-spacing: 3px;
  outline: none;
  transition: var(--transition);
}

.password-input:focus {
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(182, 155, 93, 0.2);
}

.password-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  border-radius: 8px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--color-gold);
  transition: var(--transition);
  z-index: -1;
}

.submit-btn:hover {
  color: var(--color-black);
}

.submit-btn:hover::before {
  width: 100%;
}

.error-message {
  color: #ff4d4d;
  font-size: 12px;
  margin-top: 15px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.error-message.active {
  opacity: 1;
  transform: translateY(0);
}

/* Shake Animation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}
