* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --primary: #1A5FCE;
  --primary-dark: #0D4AAB;
  --primary-light: #2F80ED;
  --secondary: #4CC9F0;
  --accent: #56CCF2;
  --dark: #1A2A3A;
  --light: #F8F9FA;
  --gray: #6D7B8C;
  --light-gray: #EDF2F4;
  --success: #4CAF50;
  --border-radius: 16px;
  --shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body {
  display: flex;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e7f1 100%);
  color: var(--dark);
  padding: 20px;
  overflow-x: hidden;
}

.container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 85vh;
  position: relative;
}

/* Brand Section */
.brand-section {
  flex: 1.2;
  background: linear-gradient(135deg, var(--primary), #1A4E9D);
  color: white;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.brand-section::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  z-index: -1;
}

.brand-section::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -30px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  z-index: -1;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 32px;
  font-weight: 700;
  z-index: 2;
}

.logo-icon {
  background: rgba(255, 255, 255, 0.15);
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  backdrop-filter: blur(5px);
}

.logo-icon i {
  font-size: 28px;
}

.brand-content {
  padding: 40px 0;
  z-index: 2;
  max-width: 90%;
}

.brand-content h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.brand-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 90%;
}

.features {
  margin-top: 40px;
}

.feature {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  border-radius: 12px;
  backdrop-filter: blur(5px);
  transition: var(--transition);
}

.feature:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

.feature i {
  margin-right: 15px;
  font-size: 1.2rem;
  color: var(--accent);
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.7;
  z-index: 2;
}

/* Form Section */
.form-section {
  flex: 1;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--light);
  position: relative;
}

.form-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  /* background: linear-gradient(90deg, var(--primary), var(--accent)); */
}

.form-header {
  margin-bottom: 40px;
}

.form-header h2 {
  font-size: 2.2rem;
  color: var(--dark);
  margin-bottom: 10px;
  font-weight: 700;
}

.form-header p {
  color: var(--gray);
  font-size: 1.05rem;
}

.login-form {
  width: 100%;
  max-width: 450px;
}

.input-group {
  margin-bottom: 25px;
  position: relative;
}

.input-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.input-icon {
  position: absolute;
  left: 18px;
  top: 46px;
  color: var(--gray);
  font-size: 18px;
  z-index: 100;
}

.form-input {
  width: 100%;
  padding: 16px 18px 16px 52px;
  border: 2px solid var(--light-gray);
  border-radius: 12px;
  font-size: 1rem;
  transition: var(--transition);
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 95, 206, 0.15);
}

.password-container {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 18px;
  top: 16px;
  color: var(--gray);
  cursor: pointer;
  font-size: 18px;
  background: none;
  border: none;
}

.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0 30px;
}

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

.remember-me input {
  margin-right: 10px;
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.remember-me label {
  color: var(--dark);
  cursor: pointer;
}

.error-message {
  color: #d9534f;
  font-size: 0.895rem;
  margin-top: 3px;
  display: none;
}

.forgot-password {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  font-size: 0.95rem;
}

.forgot-password:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.submit-btn {
  width: 100%;
  padding: 17px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(26, 95, 206, 0.3);
  position: relative;
  overflow: hidden;
}

.submit-btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40px;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(30deg);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(26, 95, 206, 0.4);
}

.submit-btn:hover::after {
  left: 120%;
}

.submit-btn:active {
  transform: translateY(0);
}

.divider {
  display: flex;
  align-items: center;
  margin: 30px 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--light-gray);
}

.divider span {
  padding: 0 15px;
  color: var(--gray);
  font-size: 0.9rem;
}

.social-login {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: nowrap;
  overflow-x: auto;   
  margin-top: 2px;
}

.social-btn {
  flex: 1 1 0;
  min-width: 100px;
  padding: 12px 8px;
  margin-top: 1px;
  border: 2px solid var(--light-gray);
  border-radius: 12px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;   
  text-overflow: ellipsis;  
  overflow: hidden;         
  cursor: pointer;
  transition: var(--transition);
}


.social-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.signup-link {
  text-align: center;
  color: var(--gray);
  margin-top: 20px;
  font-size: 0.95rem;
}

.signup-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  position: relative;
}

.signup-link a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: var(--primary);
  transition: var(--transition);
}

.signup-link a:hover::after {
  width: 100%;
}

/* Forgot Password Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 500px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  animation: modalAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: center;
}

@keyframes modalAppear {
  from {
      opacity: 0;
      transform: scale(0.8);
  }

  to {
      opacity: 1;
      transform: scale(1);
  }
}

.modal-header {
  background: var(--primary);
  padding: 25px 30px;
  color: white;
}

.modal-header h3 {
  font-size: 1.8rem;
  font-weight: 700;
}

.modal-body {
  padding: 30px;
}

.modal-body p {
  color: var(--gray);
  margin-bottom: 25px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.modal-btn {
  flex: 1;
  padding: 15px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  border: 2px solid transparent;
}

.modal-btn.primary {
  background: var(--primary);
  color: white;
}

.modal-btn.primary:hover {
  background: var(--primary-dark);
}

.modal-btn.secondary {
  background: transparent;
  border-color: var(--light-gray);
  color: var(--gray);
}

.modal-btn.secondary:hover {
  background: var(--light);
}

.close-modal {
  position: absolute;
  top: 25px;
  right: 25px;
  background: rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  color: white;
  font-size: 20px;
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Success message */
.success-message {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid var(--success);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  display: none;
}

.success-message p {
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 900px) {
  .container {
      flex-direction: column;
      height: auto;
      margin: 20px;
  }

  .brand-section {
      padding: 30px;
      text-align: center;
  }

  .logo {
      justify-content: center;
  }

  .brand-content {
      margin: 0 auto;
  }

  .features {
      max-width: 500px;
      margin: 30px auto 0;
  }

  .form-section {
      padding: 40px 30px;
  }

  .login-form {
      max-width: 100%;
  }
}

@media (max-width: 480px) {
  .social-login {
      flex-direction: column;
  }

  .options {
      flex-direction: column;
      align-items: flex-start;
      gap: 15px;
  }

  .modal-actions {
      flex-direction: column;
  }

  body {
      padding: 10px;
  }

  .brand-content h1 {
      font-size: 2.2rem;
  }
}