/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
}

.body-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 15px;
  background: rgba(0, 0, 0, 0.5);
}

.login-wrapper {
  background: rgba(30, 30, 46, 0.95);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
              0 1px 3px rgba(255, 255, 255, 0.1);
  padding: 25px;
  width: 100%;
  max-width: 400px;
  max-height: 95vh;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #673ab7 rgba(0, 0, 0, 0.2);
}

.login-wrapper::-webkit-scrollbar {
  width: 6px;
}

.login-wrapper::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.login-wrapper::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #673ab7, #3f51b5);
  border-radius: 3px;
}

/* Main Title - ONLY Bulawayo Connect */
.main-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3),
               0 0 20px rgba(103, 58, 183, 0.5);
  position: relative;
  padding-bottom: 10px;
}

.main-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 30%;
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #673ab7, transparent);
  border-radius: 2px;
}

/* Form styles - Compact */
.login-form-wrapper {
  margin-bottom: 20px;
}

.login-item {
  margin-bottom: 15px;
}

.rj-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(103, 58, 183, 0.5);
  border-radius: 8px;
  font-size: 15px;
  text-align: center;
  letter-spacing: 2px;
  font-weight: 700;
  color: #fff;
  transition: all 0.3s ease;
}

.rj-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.rj-input:focus {
  outline: none;
  border-color: #673ab7;
  box-shadow: 0 0 0 3px rgba(103, 58, 183, 0.2),
              inset 0 0 20px rgba(103, 58, 183, 0.1);
  background: rgba(255, 255, 255, 0.1);
}

/* Login button - Compact */
.login-btn {
  background: linear-gradient(135deg, #673ab7, #5e35b1);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.login-btn:hover {
  background: linear-gradient(135deg, #5e35b1, #512da8);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(103, 58, 183, 0.4);
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Error message - Compact */
.error-message {
  color: #ff5252;
  font-weight: 700;
  margin: 12px 0;
  font-size: 14px;
  min-height: 18px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  padding: 8px;
  background: rgba(255, 82, 82, 0.1);
  border-radius: 6px;
  border-left: 4px solid #ff5252;
}

/* Horizontal rule - Compact */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103, 58, 183, 0.5), transparent);
  margin: 20px 0;
}

/* Packages section - Compact */
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-left: 10px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: linear-gradient(to bottom, #673ab7, #3f51b5);
  border-radius: 2px;
}

.package-list {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: 20px;
}

.package-list li {
  padding: 10px 12px;
  color: #e0e0e0;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 6px;
  border-radius: 6px;
  border-left: 3px solid #673ab7;
  transition: all 0.3s ease;
}

.package-list li:hover {
  background: rgba(103, 58, 183, 0.15);
  transform: translateX(5px);
  color: #fff;
}

.package-list li:nth-child(2) {
  border-left-color: #3f51b5;
}

.package-list li:nth-child(3) {
  border-left-color: #2196f3;
}

.package-list li:nth-child(4) {
  border-left-color: #00bcd4;
}

/* WhatsApp section - Compact */
.whatsapp-section {
  background: rgba(37, 211, 102, 0.1);
  padding: 18px;
  border-radius: 10px;
  text-align: left;
  margin-bottom: 20px;
  border: 1px solid rgba(37, 211, 102, 0.2);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.1);
}

.whatsapp-section h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-info {
  font-size: 14px;
  color: #e0e0e0;
  margin-bottom: 10px;
  font-weight: 500;
  line-height: 1.4;
}

.phone-number {
  font-weight: 700;
  color: #25D366;
  font-size: 16px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.whatsapp-button {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  text-decoration: none;
  padding: 15px;
  border-radius: 8px;
  font-weight: 700;
  margin-top: 15px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.whatsapp-button:hover {
  background: linear-gradient(135deg, #128C7E, #075E54);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
  color: white;
  text-decoration: none;
}

.whatsapp-button:active {
  transform: translateY(0);
}

.whatsapp-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  font-size: 18px;
}

/* Footer - Compact */
.footer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 20px;
  text-align: center;
  line-height: 1.4;
  font-weight: 500;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Accessibility improvements */
.rj-input,
.login-btn,
.whatsapp-button {
  min-height: 46px; /* Minimum touch target size */
}

/* Focus styles for accessibility */
.rj-input:focus,
.login-btn:focus,
.whatsapp-button:focus {
  outline: 2px solid #673ab7;
  outline-offset: 2px;
}

/* Animation for page load */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-wrapper {
  animation: fadeIn 0.6s ease-out;
}

/* Remove pulse animation to reduce visual clutter */
.login-btn,
.whatsapp-button,
.rj-input:focus {
  animation: none;
}

/* Custom scrollbar for body */
::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Ensure everything fits without scrolling */
@media (max-height: 700px) {
  .login-wrapper {
    padding: 20px;
    max-height: 85vh;
  }
  
  .main-title {
    font-size: 24px;
    margin-bottom: 12px;
  }
  
  .login-form-wrapper {
    margin-bottom: 15px;
  }
  
  .login-btn {
    padding: 12px 24px;
  }
  
  .whatsapp-section {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .whatsapp-button {
    padding: 13px;
    font-size: 14px;
  }
  
  .package-list li {
    padding: 8px 10px;
    font-size: 13px;
  }
  
  .footer {
    padding: 10px;
    font-size: 11px;
    margin-top: 15px;
  }
}

@media (max-height: 600px) {
  .login-wrapper {
    padding: 15px;
    max-height: 80vh;
  }
  
  .main-title {
    font-size: 22px;
    padding-bottom: 8px;
  }
  
  hr {
    margin: 15px 0;
  }
  
  .section-title {
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  .whatsapp-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  .contact-info {
    font-size: 13px;
    margin-bottom: 8px;
  }
}

/* Force no scroll on body */
body.no-scroll {
  overflow: hidden;
}

/* Optimize for very small screens */
@media (max-width: 350px) {
  .login-wrapper {
    padding: 15px;
    border-radius: 8px;
  }
  
  .main-title {
    font-size: 20px;
  }
  
  .rj-input {
    padding: 10px;
    font-size: 14px;
  }
  
  .login-btn,
  .whatsapp-button {
    font-size: 14px;
    padding: 12px;
  }
}