/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-red: #ff002b;
  --dark-red: #dd0029;
  --light-red: #FF5252;
  --primary-black: #121212;
  --dark-gray: #1E1E1E;
  --medium-gray: #2D2D2D;
  --light-gray: #E0E0E0;
  --white: #FFFFFF;
  --accent-gold: #FFD700;
  --gradient: linear-gradient(135deg, #D10024 0%, #B00020 100%);
  --shadow: 0 10px 30px rgba(209, 0, 36, 0.2);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--primary-black);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  line-height: 1.6;
}

/* Main Container */
.main-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  min-height: 700px;
  background-color: var(--dark-gray);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

/* Left Panel */
.left-panel {
flex: 1;
padding: 50px 40px;
background: 
linear-gradient(rgb(18 18 18 / 94%), rgba(18, 18, 18, 0.9)), url(./assets/background.jpg) no-repeat center center / cover;
display: flex;
flex-direction: column;
justify-content: center;
position: relative;
overflow: hidden;
}


.left-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--gradient);
}

.left-panel h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.left-panel h1 span {
  color: var(--primary-red);
  position: relative;
}

.left-panel h1 span::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-red);
  border-radius: 2px;
}

.left-panel p {
  font-size: 1.1rem;
  color: var(--light-gray);
  margin-bottom: 40px;
  max-width: 90%;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 30px;
}

.feature-box {
  display: flex;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--primary-red);
  transition: all 0.3s ease;
}

.feature-box:hover {
  background: rgba(209, 0, 36, 0.1);
  transform: translateY(-5px);
  border-left-color: var(--accent-gold);
}

.feature-box i {
  font-size: 1.8rem;
  color: var(--primary-red);
  margin-right: 15px;
  margin-top: 5px;
}

.feature-box h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--white);
}

.feature-box p {
  font-size: 0.9rem;
  color: var(--light-gray);
  margin-bottom: 0;
  max-width: 100%;
}

/* Right Panel */
.right-side {
  flex: 0 0 45%;
  padding: 60px 50px;
  background-color: var(--medium-gray);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.right-side::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient);
}

.right-side h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--white);
  text-align: center;
  position: relative;
}

.right-side h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

/* Form */
form {
  width: 100%;
}

label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--light-gray);
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 16px 20px;
  margin-bottom: 25px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 1rem;
  transition: all 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(209, 0, 36, 0.2);
}

.password-wrapper {
  position: relative;
  margin-bottom: 25px;
}

.password-wrapper input {
  margin-bottom: 0;
  padding-right: 60px;
}

.eye-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--light-gray);
  transition: color 0.3s;
}

.eye-icon:hover {
  color: var(--primary-red);
}

.remember-me {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.remember-me input {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary-red);
}

.remember-me label {
  margin-bottom: 0;
  font-weight: 400;
  cursor: pointer;
}

/* Buttons */
.submit {
  width: 100%;
  padding: 18px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 25px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.submit:hover {
  background: linear-gradient(135deg, #B00020 0%, #8A001A 100%);
  transform: translateY(-3px);
  box-shadow: 0 7px 15px rgba(209, 0, 36, 0.3);
}

.back-side {
  width: 100%;
  padding: 18px;
  background: transparent;
  color: var(--white);
  border: 2px solid var(--primary-red);
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.back-side:hover {
  background-color: rgba(209, 0, 36, 0.1);
  transform: translateY(-3px);
}

/* Popup */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background-color: var(--dark-gray);
  border-radius: 15px;
  overflow: hidden;
  max-width: 500px;
  width: 90%;
  border: 2px solid var(--primary-red);
  position: relative;
}

.popup-content img {
  width: 100%;
  height: auto;
  display: block;
}

.popup-content button {
  width: 100%;
  padding: 15px;
  background-color: var(--primary-red);
  color: white;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.popup-content button:hover {
  background-color: var(--dark-red);
}

/* Logo and Branding */
.brand-logo {
  position: absolute;
  top: 30px;
  left: 40px;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
}

.brand-logo span {
  color: var(--primary-red);
}

.copyright {
  position: absolute;
  bottom: 20px;
  left: 40px;
  font-size: 0.9rem;
  color: var(--light-gray);
}

/* Responsive */
@media (max-width: 992px) {
  .main-container {
    flex-direction: column;
    max-width: 600px;
  }

  .left-panel {
    padding: 40px 30px;
  }

  .right-side {
    padding: 40px 30px;
  }

  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .left-panel h1 {
    font-size: 2.2rem;
  }

  .right-side h2 {
    font-size: 1.8rem;
  }

  .feature-box {
    padding: 15px;
  }

  .brand-logo, .copyright {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 20px;
  }

  .brand-logo {
    justify-content: center;
  }
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.main-container {
  animation: fadeIn 0.8s ease-out;
}

.feature-box {
  animation: fadeIn 0.8s ease-out;
  animation-fill-mode: both;
}

.feature-box:nth-child(1) { animation-delay: 0.1s; }
.feature-box:nth-child(2) { animation-delay: 0.2s; }
.feature-box:nth-child(3) { animation-delay: 0.3s; }
.feature-box:nth-child(4) { animation-delay: 0.4s; }