/**
 * Fortress Login Pro - Access Denied Template
 * Professional security-focused styling with creative animations
 */

 :root {
  /* Core Colors */
  --white: #ffffff;
  --black: #000000;
  
  /* Gray Scale */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Blues */
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;
  
  /* Reds */
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-200: #fecaca;
  --red-400: #f87171;
  --red-500: #ef4444;
  --red-600: #dc2626;
  
  /* Semantic Colors */
  --primary: var(--blue-600);
  --primary-hover: var(--blue-700);
  --primary-light: var(--blue-100);
  --secondary: var(--gray-600);
  --secondary-hover: var(--gray-700);
  --danger: var(--red-500);
  --danger-hover: var(--red-600);
  
  /* UI Colors */
  --background: var(--blue-50);
  --foreground: var(--gray-900);
  --muted: var(--gray-100);
  --muted-foreground: var(--gray-500);
  --border: var(--gray-200);
  
  /* Typography */
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* Spacing */
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  
  /* Border Radius */
  --radius-sm: 0.125rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  /* Transitions */
  --transition-all: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-colors: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.15s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background: linear-gradient(135deg, #e0f2fe, #dbeafe, #ede9fe);
  color: var(--foreground);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Background animation elements */
.bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.05);
  animation: float 15s infinite ease-in-out;
}

.bg-circle:nth-child(1) {
  width: 300px;
  height: 300px;
  top: -150px;
  left: -100px;
  animation-delay: 0s;
}

.bg-circle:nth-child(2) {
  width: 400px;
  height: 400px;
  bottom: -200px;
  right: -150px;
  animation-delay: -5s;
}

.bg-circle:nth-child(3) {
  width: 200px;
  height: 200px;
  top: 30%;
  right: 10%;
  animation-delay: -2s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(30px) scale(1.05);
  }
}

.fortress-container {
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 10;
}

.fortress-logo {
  text-align: center;
  margin-bottom: 20px;
  animation: logoEntrance 1.2s ease-out forwards;
}

@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fortress-logo svg {
  width: 70px;
  height: 70px;
  fill: var(--primary);
  filter: drop-shadow(0 4px 6px rgba(37, 99, 235, 0.2));
  animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 4px 6px rgba(37, 99, 235, 0.2));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(37, 99, 235, 0.3));
  }
}

.fortress-denied {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: cardEntrance 0.8s ease-out forwards;
  transform-origin: center bottom;
}

@keyframes cardEntrance {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.fortress-denied::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--blue-400));
  animation: gradientShift 3s infinite alternate;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.fortress-denied h1 {
  color: var(--primary);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  animation: textFadeIn 0.8s ease-out forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

@keyframes textFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fortress-denied p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-600);
  margin-bottom: 30px;
  animation: textFadeIn 0.8s ease-out forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

.fortress-denied a {
  display: inline-block;
  padding: 14px 28px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: buttonFadeIn 0.8s ease-out forwards;
  animation-delay: 0.7s;
  opacity: 0;
  z-index: 1;
}

@keyframes buttonFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fortress-denied a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
  z-index: -1;
}

.fortress-denied a:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -10px rgba(37, 99, 235, 0.5);
}

.fortress-denied a:hover::before {
  left: 100%;
}

.fortress-footer {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: footerFadeIn 0.8s ease-out forwards;
  animation-delay: 0.9s;
  opacity: 0;
}

@keyframes footerFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.fortress-footer svg {
  width: 16px;
  height: 16px;
  fill: var(--gray-600);
}

.fortress-footer a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.fortress-footer a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

@media (max-width: 576px) {
  .fortress-denied {
    padding: 30px 20px;
  }
  
  .fortress-denied h1 {
    font-size: 26px;
  }
  
  .fortress-denied p {
    font-size: 15px;
  }
}

/* Accessibility */
a:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}