/* General styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #ff5e1a, #6d9ff0);
  color: #333;
  margin: 0;
  padding: 0;
  border-top: 5px solid #2a76f0;
  border-bottom: 5px solid #df4605;
  transition: background 0.5s ease-in-out, color 0.5s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
       
/* Login container */
.login-container {
  display: flex;
  width: 850px;
  max-width: 95%; /* Responsive width */
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  animation: fadeIn 1s ease-in-out;
}

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

/* Login form section */
.login-form {
  width: 50%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h2 {
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
  color: #ff5e1a;
}

.form-group {
  margin-bottom: 15px;
}

label {
  font-size: 14px;
  display: block;
  margin-bottom: 5px;
}

label span {
  color: red;
}

/* Input wrapper and icon styling */
.input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 5px;
  overflow: hidden;
  background: #f9f9f9;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.input-wrapper:hover,
.input-wrapper:focus-within {
  border-color: #ff5e1a;
  box-shadow: 0 0 5px rgba(255, 94, 26, 0.5);
}

.icon-left {
  padding: 10px;
  background: #eee;
  color: #888;
  font-size: 18px;
}

input[type="text"], input[type="password"] {
  flex: 1;
  padding: 12px;
  border: none;
  outline: none;
  font-size: 14px;
  background: none;
}

input[type="checkbox"] {
  margin-right: 10px;
}

.forgot-password {
  float: right;
  font-size: 12px;
}

.btn-login {
  width: 100%;
  padding: 10px;
  background: #ff5e1a;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-login:hover {
  background: #e55415;
  transform: translateY(-2px);
}

p {
  font-size: 14px;
  text-align: center;
  margin-top: 15px;
}

.signup-link {
  color: #007bff;
}

/* Welcome banner section */
.welcome-banner {
  width: 50%;
  background: linear-gradient(135deg, #6d9ff0, #ff5e1a);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  animation: slideIn 1.2s ease-in-out;
  position: relative;
}

@keyframes slideIn {
  from {
      opacity: 0;
      transform: translateX(50px);
  }
  to {
      opacity: 1;
      transform: translateX(0);
  }
}

.banner-img {
  width: 150px; /* Increased size for the logo */
  height: auto;
  margin-bottom: 20px;
  animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
  0%, 100% {
      transform: translateY(0);
  }
  50% {
      transform: translateY(-10px);
  }
}

/* Animated welcome message */
.welcome-banner h2 {
  font-size: 26px;
  margin-top: 0;
  animation: colorChange 3s infinite alternate; /* Adding color transition */
}

@keyframes colorChange {
  0% {
      color: #ffffff;
  }
  50% {
      color: #0a0707;
  }
  100% {
      color: #043686;
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .login-container {
      flex-direction: column;
      width: 90%;
  }

  .login-form, .welcome-banner {
      width: 100%;
  }

  h2 {
      font-size: 20px;
  }

  .form-control {
      padding: 10px;
  }

  .btn-login {
      padding: 10px;
  }
}

/* Forgot Password and Reset Password */
.forgot-password-container {
  margin-top: 10px;
  text-align: right;
}

.forgot-password {
  font-size: 14px;
  color: #007bff;
  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline;
}

.reset-password-container {
  margin-top: 20px;
  text-align: right;
}

.reset-password-container a {
  color: #007bff;
  text-decoration: none;
}

.reset-password-container a:hover {
  text-decoration: underline;
}
/* Profile Page Specific Adjustments */
.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}    

.profile-details {
  text-align: center;
  margin-bottom: 30px;
}

.card {
  width: 100%;
  margin-bottom: 20px;
}

.card-header h5 {
  font-size: 20px;
  color: #333;
}

.card-body {
  font-size: 16px;
}

img#profileImagePreview {
  max-width: 100%;
  max-height: 150px;
  object-fit: cover;
}


/* Specific to login page styles */
.login-form {
  width: 50%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h2 {
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
  color: #ff5e1a;
}

/* Input field wrapper for icons */
.input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 5px;
  overflow: hidden;
  background: #f9f9f9;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

/* Style changes on hover or focus */
.input-wrapper:hover,
.input-wrapper:focus-within {
  border-color: #ff5e1a;
  box-shadow: 0 0 5px rgba(255, 94, 26, 0.5);
}

.icon-left {
  padding: 10px;
  background: #eee;
  color: #888;
  font-size: 18px;
}

input[type="text"], input[type="password"] {
  flex: 1;
  padding: 12px;
  border: none;
  outline: none;
  font-size: 14px;
  background: none;
}

.btn-login {
  width: 100%;
  padding: 10px;
  background: #ff5e1a;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-login:hover {
  background: #e55415;
  transform: translateY(-2px);
}
/* Ensure flex layout is applied correctly */
.login-container {
  display: flex;
  flex-direction: row; /* Ensure this for desktop */
  width: 850px;
  max-width: 95%;
  margin: 0 auto; /* To center container */
}

.login-form {
  width: 50%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.welcome-banner {
  width: 50%;
  background: linear-gradient(135deg, #5688d8 #ff5e1a);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

@media (max-width: 768px) {
  .login-container {
    flex-direction: column; /* Stack login form and banner */
  }

  .login-form, .welcome-banner {
    width: 100%; /* Take up full width on small screens */
  }

  h2 {
    font-size: 20px;
  }

  .form-control {
    padding: 10px;
  }

  .btn-login {
    padding: 10px;
  }
}


/* Popup Container */
#welcomeMessage {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  background: linear-gradient(135deg, #2a76f0, #ff5e1a);
  color: #fff;
  padding: 30px 50px;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  text-align: center;
  z-index: 9999;
  animation: popup-bounce 0.8s cubic-bezier(0.25, 1.25, 0.5, 1.2);
}

/* Welcome Content */
.welcome-content {
  animation: text-zoom 1s ease-in-out infinite alternate;
}

.welcome-text {
  font-size: 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.4);
}

.welcome-text strong {
  color: #f8d347; /* Highlighted Username */
  text-shadow: 0 0 10px #f8d347, 0 0 20px #f8d347;
}

.sub-text {
  font-size: 1.2rem;
  color: #fefefe;
  opacity: 0.9;
  margin-top: 10px;
  font-style: italic;
}

/* Animations */
@keyframes popup-bounce {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.7;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

@keyframes text-zoom {
  0% {
    letter-spacing: 2px;
    transform: scale(1);
  }
  100% {
    letter-spacing: 4px;
    transform: scale(1.1);
  }
}

/* Fade Out and Scale-Down */
.fade-out-scale {
  animation: fade-out-scale 0.7s ease forwards;
}

@keyframes fade-out-scale {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
}

/* Body Styling */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #ff5e1a, #6d9ff0);
  color: #333;
  margin: 0;
  padding: 0;
  border-top: 5px solid #2a76f0;
  border-bottom: 5px solid #df4605;
  transition: background 0.5s ease-in-out, color 0.5s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Add subtle animation to the body background */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 94, 26, 0.7), rgba(109, 159, 240, 0.7));
  z-index: -1;
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% {
    background: linear-gradient(135deg, rgba(255, 94, 26, 0.7), rgba(109, 159, 240, 0.7));
  }
  50% {
    background: linear-gradient(135deg, rgba(255, 94, 26, 0.9), rgba(45, 85, 220, 0.8));
  }
}
