/* Modern Welcome Page Styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Ping Identity Brand Colors */
  --primary-gradient-start: #e8114b;
  --primary-gradient-end: #ff6b35;
  --primary-color: #e8114b;
  --accent-color: #ff6b35;
  --success-color: #4ade80;
  --warning-color: #fbbf24;
  --danger-color: #f87171;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

/* Base Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: #f8fafc;
  min-height: 100vh;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
  padding: 3rem 0 2rem 0;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.8s ease-in;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  animation: slideDown 0.8s ease-out;
}

.hero-section .lead {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  animation: slideDown 0.8s ease-out 0.2s backwards;
}

/* Modern Card Styles */
.modern-card {
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  border: none;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.modern-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.15);
}

.modern-card-header {
  background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
  padding: 1.5rem;
  border: none;
  color: white;
}

.modern-card-header span {
  font-size: 1.25rem;
  font-weight: 600;
}

.modern-card-body {
  padding: 2rem;
}

/* Modern Form Inputs */
.form-floating-modern {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-floating-modern input,
.form-floating-modern textarea {
  width: 100%;
  padding: 1rem 1rem 1rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--bg-white);
}

.form-floating-modern input:focus,
.form-floating-modern textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.form-floating-modern input::placeholder,
.form-floating-modern textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-floating-modern label {
  position: absolute;
  top: -0.625rem;
  left: 0.75rem;
  padding: 0 0.5rem;
  background: white;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  pointer-events: none;
}

/* Modern Buttons */
.btn-modern-primary {
  background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
  border: none;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 0.75rem;
  color: white;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.btn-modern-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

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

.btn-modern-primary::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: left 0.5s ease;
}

.btn-modern-primary:hover::before {
  left: 100%;
}

.btn-modern-secondary {
  background: white;
  border: 2px solid var(--border-color);
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.75rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.btn-modern-secondary:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(102, 126, 234, 0.05);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-modern-outline {
  background: transparent;
  border: 2px solid white;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  color: white;
  transition: all 0.3s ease;
}

.btn-modern-outline:hover {
  background: white;
  color: var(--primary-color);
}

/* Toggle Buttons */
.toggle-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  margin-left: 0.5rem;
}

.toggle-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Collapsible Sections */
.collapse-section {
  background: var(--bg-light);
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.collapse-section .card-header {
  background: white;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.collapse-section .card-body {
  padding: 1.25rem;
}

/* Info Badge */
.info-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.info-badge:hover {
  background: var(--primary-gradient-end);
  transform: scale(1.1);
}

/* Environment Name Badge */
.env-name-container {
  background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-md);
}

.env-name-input {
  background: rgba(255, 255, 255, 0.95) !important;
  border: none !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  color: #4f46e5 !important;
  padding: 0.625rem 1rem !important;
  border-radius: 0.5rem !important;
}

.env-name-label {
  color: white;
  font-weight: 600;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.ephemeral-pill {
  background: rgba(251, 191, 36, 0.95);
  color: #78350f;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.ephemeral-pill:hover {
  background: rgba(251, 191, 36, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.ephemeral-pill span {
  color: #78350f;
  line-height: 1.3;
  display: inline-block;
}

.ephemeral-pill small {
  font-size: 0.75rem;
  opacity: 0.9;
  color: #78350f;
  display: block;
}

/* Checkbox Styles */
.modern-checkbox {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 0.25rem;
  cursor: pointer;
  accent-color: #f59e0b;
  flex-shrink: 0;
  margin: 0;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Icon Animations */
.icon-animate {
  transition: transform 0.3s ease;
}

.btn:hover .icon-animate {
  transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section .lead {
    font-size: 1rem;
  }
  
  .modern-card-body {
    padding: 1.5rem;
  }
  
  .btn-modern-primary {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
  }
}

/* Topbar Modern */
.modern-topbar {
  background: white;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  animation: slideDown 0.5s ease-out;
}

/* Documentation Button */
.doc-btn {
  background: var(--primary-color);
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.doc-btn:hover {
  background: var(--primary-gradient-end);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Spinner Override */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 2px;
}

/* Link Styles */
a.btn-modern-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

a.btn-modern-link:hover {
  color: var(--primary-gradient-end);
  text-decoration: underline;
}
