:root {
  --johnson-primary: #2c5aa0;
  --johnson-primary-dark: #1e3f73;
  --johnson-primary-light: #4a7bc8;
  --johnson-secondary: #17a2b8;
  --johnson-secondary-light: #5bc0de;
  --johnson-accent: #28a745;
  --johnson-dark-grey: #343a40;
  --johnson-grey: #495057;
  --johnson-light-grey: #f8f9fa;
  --johnson-white: #ffffff;
}

/* Johnson Login Body */
.johnson-login-body {
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0f2027 0%, #203a43 25%, #2c5aa0 75%, #1e3f73 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Background Pattern */
.johnson-bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(23, 162, 184, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(44, 90, 160, 0.1) 0%, transparent 50%);
  background-size: 800px 800px, 600px 600px, 400px 400px;
  background-position: 0 0, 100% 100%, 50% 50%;
  animation: floatingPattern 20s ease-in-out infinite;
  z-index: -1;
}

@keyframes floatingPattern {
  0%, 100% { 
    background-position: 0 0, 100% 100%, 50% 50%; 
  }
  50% { 
    background-position: 100% 0, 0 100%, 80% 20%; 
  }
}

/* Header */
.johnson-login-header {
  padding: 20px 0;
  text-align: center;
  position: relative;
  z-index: 10;
}

/* Main Container */
.johnson-login-main {
  padding: 20px 0 40px;
  position: relative;
  z-index: 10;
}

/* Welcome Section */
.johnson-welcome-section {
  text-align: center;
  margin-bottom: 30px;
  animation: slideInDown 0.8s ease-out;
}

.johnson-welcome-icon {
  display: inline-block;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--johnson-secondary), var(--johnson-primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
  animation: pulse 2s infinite;
}

.johnson-welcome-icon i {
  font-size: 32px;
  color: white;
}

.johnson-welcome-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.johnson-welcome-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Login Card */
.johnson-login-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  animation: slideInUp 0.8s ease-out 0.2s both;
  position: relative;
}

.johnson-login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--johnson-primary) 0%, var(--johnson-secondary) 50%, var(--johnson-accent) 100%);
}

/* Card Header */
.johnson-card-header {
  padding: 30px 30px 20px;
  text-align: center;
  background: linear-gradient(135deg, rgba(44, 90, 160, 0.05), rgba(23, 162, 184, 0.05));
}

.johnson-card-logo {
  margin-bottom: 25px;
}

.johnson-logo-img {
  height: 70px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
}

.johnson-logo-img:hover {
  transform: scale(1.05);
}

.johnson-card-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--johnson-primary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.johnson-card-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--johnson-primary), var(--johnson-secondary));
  margin: 0 auto;
  border-radius: 2px;
}

/* Card Body */
.johnson-card-body {
  padding: 30px;
}

/* Form Groups */
.johnson-form-group {
  margin-bottom: 25px;
}

.johnson-form-label {
  display: block;
  font-weight: 600;
  color: var(--johnson-dark-grey);
  margin-bottom: 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.johnson-input-wrapper {
  position: relative;
}

.johnson-form-control {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  outline: none;
}

.johnson-form-control:focus {
  border-color: var(--johnson-primary);
  box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
  transform: translateY(-2px);
}

.johnson-input-focus-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--johnson-primary), var(--johnson-secondary));
  transition: width 0.3s ease;
}

.johnson-form-control:focus + .johnson-input-focus-line {
  width: 100%;
}

/* Form Options */
.johnson-form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.johnson-remember-me {
  display: flex;
  align-items: center;
}

.johnson-checkbox {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  accent-color: var(--johnson-primary);
}

.johnson-checkbox-label {
  font-size: 0.9rem;
  color: var(--johnson-grey);
  cursor: pointer;
  user-select: none;
}



/* Login Button */
.johnson-login-btn {
  width: 100%;
  padding: 16px 30px;
  background: linear-gradient(135deg, var(--johnson-primary), var(--johnson-primary-dark));
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(44, 90, 160, 0.3);
}

.johnson-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(44, 90, 160, 0.4);
  background: linear-gradient(135deg, var(--johnson-primary-dark), var(--johnson-primary));
}

.johnson-btn-text {
  margin-right: 10px;
}

.johnson-btn-icon {
  transition: transform 0.3s ease;
}

.johnson-login-btn:hover .johnson-btn-icon {
  transform: translateX(5px);
}

/* Error Message */
.johnson-error-message {
  margin-top: 20px;
  padding: 15px;
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  border-radius: 10px;
  font-size: 0.9rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
  animation: slideInUp 0.3s ease-out;
}

/* Card Footer */
.johnson-card-footer {
  padding: 20px 30px 30px;
  text-align: center;
  background: rgba(248, 249, 250, 0.5);
}

.johnson-footer-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(44, 90, 160, 0.2), transparent);
  margin-bottom: 15px;
}

.johnson-footer-text {
  font-size: 0.9rem;
  color: var(--johnson-grey);
  margin-bottom: 0;
}

/* Features Section */
.johnson-features-section {
  margin-top: 40px;
  animation: slideInUp 0.8s ease-out 0.4s both;
}

.johnson-feature-item {
  text-align: center;
  padding: 20px 10px;
  color: white;
  transition: transform 0.3s ease;
}

.johnson-feature-item:hover {
  transform: translateY(-5px);
}

.johnson-feature-item i {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--johnson-secondary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.johnson-feature-item span {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Footer */
.johnson-login-footer {
  padding: 20px 0;
  text-align: center;
  position: relative;
  z-index: 10;
}

.johnson-footer-copyright {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0% {
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
  }
  50% {
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.5);
  }
  100% {
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .johnson-welcome-title {
    font-size: 2rem;
  }
  
  .johnson-welcome-subtitle {
    font-size: 1rem;
  }
  
  .johnson-card-header,
  .johnson-card-body,
  .johnson-card-footer {
    padding: 20px;
  }
  
  .johnson-form-options {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .johnson-feature-item {
    padding: 15px 5px;
  }
  
  .johnson-feature-item i {
    font-size: 1.5rem;
  }
  
  .johnson-feature-item span {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .johnson-login-main {
    padding: 10px 0 20px;
  }
  
  .johnson-welcome-section {
    margin-bottom: 20px;
  }
  
  .johnson-welcome-icon {
    width: 60px;
    height: 60px;
  }
  
  .johnson-welcome-icon i {
    font-size: 24px;
  }
  
  .johnson-login-card {
    border-radius: 15px;
    margin: 0 10px;
  }
  
  .johnson-features-section {
    margin-top: 30px;
  }
}