/* Access Gate Page */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a1628 0%, #132240 40%, #1a3a6b 70%, #1e40af 100%);
  overflow: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(37, 99, 235, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(201, 168, 76, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(30, 64, 175, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

/* Animated background orbs */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 20s ease-in-out infinite;
}

.bg-orb-1 {
  width: 500px;
  height: 500px;
  background: #2563eb;
  top: -15%;
  left: -10%;
  animation-delay: 0s;
}

.bg-orb-2 {
  width: 400px;
  height: 400px;
  background: #c9a84c;
  bottom: -10%;
  right: -10%;
  animation-delay: -7s;
}

.bg-orb-3 {
  width: 300px;
  height: 300px;
  background: #1e40af;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(20px, 10px) scale(1.02); }
}

/* Access card */
.access-card {
  position: relative;
  z-index: 10;
  width: min(440px, 90vw);
  padding: 3rem 2.5rem;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  animation: cardEnter 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.access-emblem {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(201, 168, 76, 0.05));
  border: 1px solid rgba(201, 168, 76, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cardEnter 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.access-emblem svg {
  width: 28px;
  height: 28px;
  stroke: #c9a84c;
  fill: none;
  stroke-width: 1.5;
}

.access-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
  animation: cardEnter 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.access-subtitle {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2.5rem;
  animation: cardEnter 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.access-form {
  animation: cardEnter 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

.input-wrapper {
  position: relative;
  margin-bottom: 1.25rem;
}

.input-wrapper svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: rgba(255, 255, 255, 0.35);
  fill: none;
  stroke-width: 1.5;
  pointer-events: none;
  transition: stroke 0.3s;
}

.access-input {
  width: 100%;
  padding: 0.95rem 1rem 0.95rem 2.8rem;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #ffffff;
  transition: all 0.3s;
}

.access-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.access-input:focus {
  outline: none;
  border-color: rgba(201, 168, 76, 0.5);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.08);
}

.access-input:focus + svg,
.access-input:focus ~ svg {
  stroke: #c9a84c;
}

.access-btn {
  width: 100%;
  padding: 0.95rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #c9a84c, #e2c97e);
  color: #0a1628;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.02em;
}

.access-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.3);
}

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

/* Error message */
.access-error {
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  font-size: 0.85rem;
  color: #fca5a5;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.access-error.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

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

.shake {
  animation: shake 0.5s ease-in-out;
}

.access-footer {
  margin-top: 2.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  animation: cardEnter 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}
