﻿/* =====================================================
   TimeWaver Identity Server - Design System
   ===================================================== */

/* CSS Custom Properties (Variables) */
:root {
  /* Brand Colors */
  --tw-primary: #0066cc;
  --tw-primary-dark: #004499;
  --tw-secondary: #f8f9fa;
  --tw-accent: #17a2b8;
  --tw-dark: #2c3e50;
  --tw-light: #ffffff;
  
  /* Gray Scale */
  --tw-gray-100: #f8f9fa;
  --tw-gray-200: #e9ecef;
  --tw-gray-300: #dee2e6;
  --tw-gray-400: #ced4da;
  --tw-gray-500: #adb5bd;
  --tw-gray-600: #6c757d;
  --tw-gray-700: #495057;
  --tw-gray-800: #343a40;
  --tw-gray-900: #212529;
  
  /* Shadows */
  --tw-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --tw-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --tw-shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
  
  /* Borders and Spacing */
  --tw-border-radius: 12px;
  
  /* Typography */
  --tw-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  
  /* Transitions */
  --tw-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --tw-gray-100: #1f2937;
    --tw-gray-200: #374151;
    --tw-light: #f9f9f9;
  }
}

/* =====================================================
   FontAwesome Fallback System - Enhanced
   ===================================================== */

/* Initial state - hide icons until we know if FontAwesome is loaded */
html:not(.fontawesome-loaded):not(.fontawesome-failed) .fa,
html:not(.fontawesome-loaded):not(.fontawesome-failed) [class*="fa-"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* FontAwesome loaded successfully - show icons with smooth transition */
html.fontawesome-loaded .fa,
html.fontawesome-loaded [class*="fa-"] {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* FontAwesome failed to load - show fallback text with transition */
html.fontawesome-failed .fa::before,
html.fontawesome-failed [class*="fa-"]::before {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Fallback content - only visible when FontAwesome isn't loaded */
html:not(.fontawesome-loaded) .fa-home::before { content: "🏠"; }
html:not(.fontawesome-loaded) .fa-shield-alt::before,
html:not(.fontawesome-loaded) .fa-shield-halved::before { content: "🛡"; }
html:not(.fontawesome-loaded) .fa-shield-check::before { content: "🛡"; }
html:not(.fontawesome-loaded) .fa-user::before { content: "USER"; }
html:not(.fontawesome-loaded) .fa-user-circle::before { content: "USER"; }
html:not(.fontawesome-loaded) .fa-cog::before { content: "MENU"; }
html:not(.fontawesome-loaded) .fa-question-circle::before { content: "HELP"; }
html:not(.fontawesome-loaded) .fa-book::before { content: "DOCS"; }
html:not(.fontawesome-loaded) .fa-sign-in-alt::before,
html:not(.fontawesome-loaded) .fa-right-to-bracket::before { content: "LOGIN"; }
html:not(.fontawesome-loaded) .fa-sign-out-alt::before,
html:not(.fontawesome-loaded) .fa-right-from-bracket::before { content: "LOGOUT"; }
html:not(.fontawesome-loaded) .fa-user-plus::before { content: "REGISTER"; }
html:not(.fontawesome-loaded) .fa-mobile-alt::before,
html:not(.fontawesome-loaded) .fa-mobile-screen-button::before { content: "📱"; }
html:not(.fontawesome-loaded) .fa-key::before { content: "🔑"; }
html:not(.fontawesome-loaded) .fa-code::before { content: "💻"; }
html:not(.fontawesome-loaded) .fa-lock::before { content: "🔒"; }
html:not(.fontawesome-loaded) .fa-microsoft::before { content: "MS"; }
html:not(.fontawesome-loaded) .fa-trash::before { content: "🗑"; }
html:not(.fontawesome-loaded) .fa-exclamation-triangle::before { content: "⚠️"; }
html:not(.fontawesome-loaded) .fa-tasks::before,
html:not(.fontawesome-loaded) .fa-list-check::before { content: "TASKS"; }
html:not(.fontawesome-loaded) .fa-edit::before,
html:not(.fontawesome-loaded) .fa-pen-to-square::before { content: "EDIT"; }
html:not(.fontawesome-loaded) .fa-info-circle::before { content: "INFO"; }
html:not(.fontawesome-loaded) .fa-check::before { content: "✓"; }
html:not(.fontawesome-loaded) .fa-check-circle::before { content: "✓"; }
html:not(.fontawesome-loaded) .fa-times::before { content: "×"; }
html:not(.fontawesome-loaded) .fa-plus::before { content: "+"; }
html:not(.fontawesome-loaded) .fa-arrow-left::before { content: "←"; }
html:not(.fontawesome-loaded) .fa-envelope::before { content: "📧"; }
html:not(.fontawesome-loaded) .fa-external-link-alt::before { content: "🔗"; }
html:not(.fontawesome-loaded) .fa-redo::before { content: "🔄"; }
html:not(.fontawesome-loaded) .fa-shield::before { content: "🛡"; }
html:not(.fontawesome-loaded) .fa-tags::before { content: "TAGS"; }
html:not(.fontawesome-loaded) .fa-desktop::before { content: "DESKTOP"; }
html:not(.fontawesome-loaded) .fa-users::before { content: "USERS"; }
html:not(.fontawesome-loaded) .fa-stethoscope::before { content: "DIAG"; }
html:not(.fontawesome-loaded) .fa-google::before { content: "GOOGLE"; }
html:not(.fontawesome-loaded) .fa-remember::before { content: "💾"; }
html:not(.fontawesome-loaded) .fa-exclamation-circle::before { content: "!"; }
html:not(.fontawesome-loaded) .fa-circle::before { content: "○"; }

/* Style fallback text to be more visually appealing */
html:not(.fontawesome-loaded) [class*="fa-"]::before {
  font-family: var(--tw-font-family);
  font-weight: 600;
  font-size: 0.7em;
  color: var(--tw-primary);
  background: rgba(0, 102, 204, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Specific styling for smaller fallback characters */
html:not(.fontawesome-loaded) .fa-check::before,
html:not(.fontawesome-loaded) .fa-check-circle::before,
html:not(.fontawesome-loaded) .fa-times::before,
html:not(.fontawesome-loaded) .fa-plus::before,
html:not(.fontawesome-loaded) .fa-arrow-left::before,
html:not(.fontawesome-loaded) .fa-exclamation-circle::before,
html:not(.fontawesome-loaded) .fa-circle::before {
  background: none;
  padding: 0;
  font-size: 1em;
}

/* =====================================================
   Global Base Styles
   ===================================================== */

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  font-family: var(--tw-font-family);
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: var(--tw-gray-800);
  line-height: 1.6;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 100px;
}

/* =====================================================
   Typography
   ===================================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.display-4 {
  font-weight: 700;
  background: linear-gradient(135deg, var(--tw-primary), var(--tw-primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =====================================================
   Navigation and Header
   ===================================================== */

.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--tw-shadow);
  padding: 1rem 0;
  transition: var(--tw-transition);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--tw-primary), var(--tw-primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.navbar-dark .navbar-brand {
  color: var(--tw-light) !important;
  background: none;
  -webkit-text-fill-color: var(--tw-light);
}

.nav-link {
  color: var(--tw-gray-700) !important;
  font-weight: 500;
  transition: var(--tw-transition);
  position: relative;
  z-index: 1;
}

.navbar-dark .nav-link {
  color: var(--tw-light) !important;
}

.nav-link:hover {
  color: var(--tw-primary) !important;
  transform: translateY(-1px);
}

.navbar-dark .nav-link:hover {
  color: var(--tw-gray-200) !important;
}

/* =====================================================
   Dropdown System - Bootstrap 5 Integration
   ===================================================== */

.dropdown {
  position: relative;
}

.dropdown-toggle::after {
  transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  border: none;
  box-shadow: var(--tw-shadow-lg);
  border-radius: var(--tw-border-radius);
  padding: 0.5rem 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  margin-top: 0.5rem;
  min-width: 200px;
  /* Ensure proper z-index */
  z-index: 1050;
}

/* Ensure dropdown menus show properly */
.dropdown-menu.show {
  display: block !important;
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
  z-index: 1050 !important;
}

.dropdown-item {
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  transition: var(--tw-transition);
  border: none;
  background: none;
  color: var(--tw-gray-700);
  text-decoration: none;
  display: flex;
  align-items: center;
  width: 100%;
  cursor: pointer;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: linear-gradient(135deg, var(--tw-primary), var(--tw-primary-dark));
  color: var(--tw-light) !important;
  transform: translateX(5px);
  text-decoration: none;
}

.dropdown-item:active {
  background: linear-gradient(135deg, var(--tw-primary-dark), var(--tw-primary));
  color: var(--tw-light) !important;
}

.dropdown-item i {
  width: 20px;
  text-align: center;
  margin-right: 0.5rem;
}

.dropdown-divider {
  height: 0;
  margin: 0.5rem 0;
  overflow: hidden;
  border-top: 1px solid var(--tw-gray-300);
}

/* =====================================================
   Language Switcher Styles
   ===================================================== */

.language-switcher .dropdown-menu {
  min-width: 200px;
  border: none;
  box-shadow: var(--tw-shadow-lg);
  border-radius: var(--tw-border-radius);
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  margin-top: 0.5rem;
  z-index: 1060;
}

.language-switcher .dropdown-item {
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  transition: var(--tw-transition);
  border: none;
  background: none;
  color: var(--tw-gray-700);
  text-decoration: none;
  display: flex;
  align-items: center;
  width: 100%;
  cursor: pointer;
  font-size: 0.95rem;
}

.language-switcher .dropdown-item:hover:not(.active) {
  background: linear-gradient(135deg, var(--tw-primary), var(--tw-primary-dark));
  color: var(--tw-light) !important;
  transform: translateX(5px);
  text-decoration: none;
}

.language-switcher .dropdown-item.active {
  background: linear-gradient(135deg, var(--tw-primary-dark), var(--tw-primary));
  color: var(--tw-light) !important;
  font-weight: 600;
}

.language-switcher .dropdown-item.active:hover {
  transform: none;
}

.language-switcher .dropdown-header {
  font-weight: 600;
  color: var(--tw-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 1.25rem;
}

.language-switcher .dropdown-divider {
  height: 0;
  margin: 0.5rem 0;
  overflow: hidden;
  border-top: 1px solid var(--tw-gray-300);
}

/* Flag icons styling with multiple fallback approaches */
.language-switcher .flag-icon {
  display: inline-block;
  width: 20px;
  height: 15px;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  margin-right: 0.75rem;
  vertical-align: middle;
  line-height: 1;
  font-size: 1.1em;
  font-family: 
    "Apple Color Emoji",
    "Segoe UI Emoji", 
    "Segoe UI Symbol",
    "Noto Color Emoji",
    "Android Emoji",
    "EmojiSymbols",
    "Twemoji Mozilla",
    "Segoe UI",
    sans-serif;
  font-style: normal;
  font-weight: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Specific flag styling */
.language-switcher .flag-de {
  /* German flag fallback */
}

.language-switcher .flag-us {
  /* US flag fallback */
}

.language-switcher .flag-default {
  /* Default globe icon */
}

/* Fallback for systems that don't support flag emojis */
@supports not (font-family: "Apple Color Emoji") {
  .language-switcher .flag-de::before {
    content: "DE";
    font-size: 0.7em;
    font-weight: bold;
    color: var(--tw-primary);
    background: var(--tw-gray-200);
    padding: 2px 4px;
    border-radius: 3px;
    border: 1px solid var(--tw-gray-400);
  }
  
  .language-switcher .flag-us::before {
    content: "EN";
    font-size: 0.7em;
    font-weight: bold;
    color: var(--tw-primary);
    background: var(--tw-gray-200);
    padding: 2px 4px;
    border-radius: 3px;
    border: 1px solid var(--tw-gray-400);
  }
  
  .language-switcher .flag-default::before {
    content: "🌐";
  }
}

/* Alternative CSS-only flag approach for very old browsers */
.no-emoji-support .language-switcher .flag-de {
  background: linear-gradient(to bottom, #000 33.33%, #dd0000 33.33%, #dd0000 66.66%, #ffce00 66.66%);
}

.no-emoji-support .language-switcher .flag-us {
  background: linear-gradient(to bottom, 
    #B22234 0%, #B22234 7.69%, 
    #FFFFFF 7.69%, #FFFFFF 15.38%,
    #B22234 15.38%, #B22234 23.08%,
    #FFFFFF 23.08%, #FFFFFF 30.77%,
    #B22234 30.77%, #B22234 38.46%,
    #FFFFFF 38.46%, #FFFFFF 46.15%,
    #B22234 46.15%, #B22234 53.85%,
    #FFFFFF 53.85%, #FFFFFF 61.54%,
    #B22234 61.54%, #B22234 69.23%,
    #FFFFFF 69.23%, #FFFFFF 76.92%,
    #B22234 76.92%, #B22234 84.62%,
    #FFFFFF 84.62%, #FFFFFF 92.31%,
    #B22234 92.31%);
}

.no-emoji-support .language-switcher .flag-us::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 53.85%;
  background: #3C3B6E;
}

/* Language switcher icon in navbar */
.language-switcher .nav-link {
  position: relative;
}

.language-switcher .nav-link:hover {
  color: var(--tw-primary) !important;
}

/* Emoji rendering optimization */
.flag-icon {
  font-feature-settings: "liga", "kern";
  text-rendering: optimizeSpeed;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .language-switcher .dropdown-menu {
    position: static !important;
    transform: none !important;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid var(--tw-gray-300);
    margin-top: 0;
    backdrop-filter: none;
    background: var(--tw-light);
  }
  
  .language-switcher .dropdown-menu.show {
    transform: none;
  }
  
  .language-switcher .nav-link span {
    display: inline !important;
  }
  
  .language-switcher .flag-icon {
    margin-right: 0.5rem;
  }
}

/* =====================================================
   Layout Components
   ===================================================== */

.body-container {
  margin-top: 2rem;
  padding-bottom: 3rem;
  max-width: 1200px;
}

.page-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  padding: 3rem 2rem;
  margin-bottom: 2rem;
  border-radius: var(--tw-border-radius);
  box-shadow: var(--tw-shadow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-header h1 {
  background: linear-gradient(135deg, var(--tw-primary), var(--tw-primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: clamp(2rem, 5vw, 2.5rem);
}

.page-header p {
  color: var(--tw-gray-600);
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: var(--tw-border-radius);
  margin-top: -1rem;
}

/* =====================================================
   Card Components
   ===================================================== */

.card {
  border: none;
  border-radius: var(--tw-border-radius);
  box-shadow: var(--tw-shadow);
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  transition: var(--tw-transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--tw-shadow-lg);
}

.card-header {
  background: linear-gradient(135deg, var(--tw-primary) 0%, var(--tw-primary-dark) 100%);
  border: none;
  border-radius: var(--tw-border-radius) var(--tw-border-radius) 0 0;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.card-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 20px 20px, 30px 30px, 25px 25px;
  background-position: 0 0, 10px 10px, 5px 15px;
  opacity: 0.4;
  animation: subtle-float 20s ease-in-out infinite;
}

.card-header h2,
.card-header h3,
.card-header h4 {
  color: var(--tw-light);
  margin-bottom: 0;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.card-body {
  padding: 2rem;
}

/* =====================================================
   Form Components
   ===================================================== */

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  border: 2px solid var(--tw-gray-300);
  border-radius: var(--tw-border-radius);
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  transition: var(--tw-transition);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.form-control:focus {
  border-color: var(--tw-primary);
  box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.15);
  background: var(--tw-light);
  transform: translateY(-1px);
}

.form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.15);
}

.form-control.is-valid {
  border-color: #28a745;
  box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.15);
}

label {
  font-weight: 600;
  color: var(--tw-gray-700);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* =====================================================
   Button Components
   ===================================================== */

.btn {
  padding: 0.875rem 2rem;
  border-radius: var(--tw-border-radius);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.025em;
  transition: var(--tw-transition);
  border: none;
  position: relative;
  overflow: hidden;
  font-size: 0.95rem;
}

.btn::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;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--tw-primary) 0%, var(--tw-primary-dark) 100%);
  color: var(--tw-light);
  border: 2px solid transparent;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--tw-primary-dark) 0%, var(--tw-primary) 100%);
  transform: translateY(-2px);
  box-shadow: var(--tw-shadow-lg);
}

.btn-secondary {
  background: var(--tw-gray-600);
  color: var(--tw-light);
}

.btn-secondary:hover {
  background: var(--tw-gray-700);
  transform: translateY(-2px);
  box-shadow: var(--tw-shadow-lg);
}

.btn-outline-primary {
  border: 2px solid var(--tw-primary);
  color: var(--tw-primary);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, var(--tw-primary), var(--tw-primary-dark));
  color: var(--tw-light);
  transform: translateY(-2px);
  box-shadow: var(--tw-shadow-lg);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn:disabled::before {
  display: none;
}

/* =====================================================
   Alert Components
   ===================================================== */

.alert {
  border: none;
  border-radius: var(--tw-border-radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  border-left: 4px solid;
}

.alert-info {
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.1), rgba(23, 162, 184, 0.05));
  color: #0c5460;
  border-left-color: var(--tw-accent);
}

.alert-warning {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
  color: #856404;
  border-left-color: #ffc107;
}

.alert-danger {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
  color: #721c24;
  border-left-color: #dc3545;
}

.alert-success {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
  color: #155724;
  border-left-color: #28a745;
}

/* =====================================================
   Page-Specific Styles
   ===================================================== */

/* Login and Register Pages */
.login-page,
.register-page {
  min-height: 100vh;
  padding-top: 2rem;
}

/* Two-Factor Authentication Setup Pages */
.step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--tw-primary), var(--tw-primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

.app-option {
  padding: 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  background: white;
  transition: all 0.3s ease;
}

.app-option:hover {
  border-color: var(--tw-primary);
  box-shadow: var(--tw-shadow);
}

.qr-section {
  background: white;
  padding: 2rem;
  border-radius: var(--tw-border-radius);
  border: 2px solid #e9ecef;
}

/* Home Page Styles */
.hero-section {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 68, 153, 0.05) 100%);
  border-radius: var(--tw-border-radius);
  margin-top: -1rem;
}

.feature-card {
  transition: all 0.3s ease;
  border: none;
  box-shadow: var(--tw-shadow);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--tw-shadow-lg);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--tw-primary), var(--tw-primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: white;
  font-size: 2rem;
}

.tech-item {
  padding: 1rem;
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-3px);
}

/* =====================================================
   Password Requirements Validation Styles
   ===================================================== */

.requirement-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 6px;
  border-left: 3px solid transparent;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
}

.requirement-item.requirement-met {
  background: rgba(40, 167, 69, 0.1);
  border-left-color: #28a745;
  transform: translateX(2px);
}

.requirement-item.requirement-met .requirement-icon i {
  color: #28a745;
  animation: checkmark-bounce 0.4s ease;
}

.requirement-item.requirement-met .requirement-text {
  color: #28a745;
  font-weight: 600;
}

.requirement-item.requirement-unmet {
  background: rgba(220, 53, 69, 0.08);
  border-left-color: #dc3545;
}

.requirement-item.requirement-unmet .requirement-icon i {
  color: #dc3545;
}

.requirement-item.requirement-unmet .requirement-text {
  color: #dc3545;
  font-weight: 500;
}

.requirement-item:hover {
  transform: translateX(3px);
  box-shadow: var(--tw-shadow);
}

@keyframes checkmark-bounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Password Input Container Styles */
.password-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-container .form-control {
  padding-right: 45px;
}

.password-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  padding: 0.375rem;
  z-index: 10;
  color: var(--tw-gray-500);
  transition: var(--tw-transition);
  border-radius: 4px;
}

.password-toggle-btn:hover {
  color: var(--tw-primary);
  background: rgba(0, 102, 204, 0.1);
}

.password-toggle-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.25);
}

/* Password Strength Indicator */
.password-strength-indicator {
  margin-bottom: 1rem;
}

.password-strength-indicator .progress {
  background-color: var(--tw-gray-200);
  border-radius: 6px;
  overflow: hidden;
  height: 8px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.password-strength-indicator .progress-bar {
  transition: width 0.4s ease, background-color 0.4s ease;
  border-radius: 6px;
}

.password-strength-indicator .progress-bar.bg-danger {
  background: linear-gradient(90deg, #dc3545, #c82333);
}

.password-strength-indicator .progress-bar.bg-warning {
  background: linear-gradient(90deg, #ffc107, #e0a800);
}

.password-strength-indicator .progress-bar.bg-info {
  background: linear-gradient(90deg, #17a2b8, #138496);
}

.password-strength-indicator .progress-bar.bg-success {
  background: linear-gradient(90deg, #28a745, #218838);
}

/* Password Match Indicator */
.password-match-indicator {
  transition: all 0.3s ease;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  margin-top: 0.5rem;
}

.password-match-indicator .text-success {
  color: #28a745 !important;
  background: rgba(40, 167, 69, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

.password-match-indicator .text-danger {
  color: #dc3545 !important;
  background: rgba(220, 53, 69, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Registration Form Enhancements */
.register-page .card {
  border: none;
  border-radius: var(--tw-border-radius);
  box-shadow: var(--tw-shadow-lg);
  overflow: hidden;
}

.register-page .form-control:focus {
  border-color: var(--tw-primary);
  box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.15);
  transform: translateY(-1px);
}

/* Mobile Responsive Adjustments for Password Requirements */
@media (max-width: 768px) {
  .requirement-item {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
  
  .password-toggle-btn {
    padding: 0.25rem;
  }
  
  .password-strength-indicator .progress {
    height: 6px;
  }
}
