/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f6fa;
  height: 100vh;
  overflow: hidden;
}

.login-wrapper {
  display: flex;
  height: 100vh;
}

/* Left Panel (Slider) */
.left-panel {
  flex: 1;
  background: #1e1e2f;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
}

.slider {
  max-width: 400px;
  text-align: center;
}

.slider img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.slider p {
  font-size: 1rem;
  line-height: 1.5;
}

.dots {
  margin-top: 1rem;
}

.dot {
  display: inline-block;
  height: 10px;
  width: 10px;
  border-radius: 50%;
  margin: 0 5px;
  background-color: #888;
  cursor: pointer;
}

.dot.active {
  background-color: #fff;
}

/* Right Panel (Form) */
.right-panel {
  flex: 1;
  background: linear-gradient(45deg, rgba(255, 230, 230, 0.6), rgba(230, 204, 255, 0.6)); /* Lighter red and violet gradient */
  background-size: 400% 400%; /* Larger gradient size for animation */
  animation: gradientAnimation 6s ease infinite; /* Infinite animation for gradient */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transition: all 0.3s ease; /* Smooth transition for hover effect */
}

.right-panel:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Hover effect */
  transform: translateY(-5px); /* Slight lift effect on hover */
}

.form-container {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.logo img {
  height: 80px; /* Increased logo size */
  margin-bottom: 1rem;
}

h2 {
  margin-bottom: 1.5rem;
}

form input[type="text"],
form input[type="password"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-align: center; /* Center align the text inside the input */
}

.fancy-button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(45deg, #ff6f61, #8e44ad); /* Red to Violet gradient */
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease; /* Transition for background */
  font-size: 1rem; /* Slightly increase font size for better readability */
  text-align: center; /* Ensure button text is centered */
}

.fancy-button:hover {
  background: linear-gradient(45deg, #8e44ad, #ff6f61); /* Swap Red and Violet gradient on hover */
}

.fancy-button:focus {
  outline: none; /* Removes the outline on button focus */
  box-shadow: 0 0 0 2px rgba(46, 134, 222, 0.5); /* Adds subtle focus ring */
}

a {
  display: inline-block;
  margin-top: 10px;
  color: #2e86de;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Messages */
.message-box {
  margin-top: 20px;
  background-color: #ffe0e0; /* Light red background */
  color: #a00; /* Dark red text */
  padding: 10px 20px;
  border-radius: 6px;
  text-align: center;
  font-weight: normal;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  position: relative;
  transition: background-color 0.3s ease; /* Smooth transition on hover */
  opacity: 1;
  animation: fadeIn 0.4s ease-in; /* Animation for showing the message box */
}

.message-box:hover {
  background-color: #f8cfcf; /* Lighter shade of red on hover */
}

.message-box .close-btn {
  position: absolute;
  top: 5px;
  right: 10px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  color: #a00;
  background: transparent;
  border: none;
}

.message-box .close-btn:hover {
  color: #721c24; /* Darker red on hover */
}

.message-box .message-item {
  list-style: none;
  margin: 0;
}

/* Animation for the message box */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Success message */
.message.success {
  background-color: #d4edda; /* Light green background */
  color: #155724; /* Dark green text */
}

.message.success:hover {
  background-color: #c3e6cb; /* Slightly lighter green on hover */
}

.message.success .close-btn {
  color: #155724; /* Dark green for success messages */
}

.message.success .close-btn:hover {
  color: #0c2e15; /* Darker green on hover */
}

/* Error message */
.message.error {
  background-color: #f8d7da; /* Light red background */
  color: #721c24; /* Dark red text */
}

.message.error:hover {
  background-color: #f1b0b7; /* Slightly lighter red on hover */
}

.message.error .close-btn {
  color: #721c24; /* Dark red for error messages */
}

.message.error .close-btn:hover {
  color: #491e23; /* Darker red on hover */
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Gradient animation */
@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
  .left-panel {
    display: none;
  }

  .login-wrapper {
    flex-direction: column;
  }

  .left-panel {
    display: none !important;
    flex: 0 0 0;
    max-width: 0;
  }

  .right-panel {
    flex: 1;
    width: 100vw; /* Full viewport width */
    padding: 1rem;
    border-radius: 0; /* Optional: remove border-radius on mobile */
    box-shadow: none; /* Optional: remove shadow on mobile for clean look */
  }

  .form-container {
    max-width: 100%;
  }
}

  /** Left site  **/

  .left-panel {
    flex: 1;
    position: relative;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
  }
  .background-img {
    position: absolute;
    bottom: -50%;
    left: 0;
    width: 100%;
    height: 150%;


    background: 
      linear-gradient(to top, #ff0000,  rgb(159 9 32 / 33%)), /* red overlay */
      url('https://bundlr.ottplay.com/images/login/logleft.png') no-repeat center bottom;
    background-size: cover;
    z-index: 0;
  }
  
  
  .slider {
    position: relative;
    z-index: 1;
  }
  
  
  /** Lft end **/