/* ============================================
   Reset & Base
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Manrope', sans-serif;
  background: #f5f5f5;
  color: #1a1d2e;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   Login Container
   ============================================ */

.login-container {
  display: flex;
  width: 100%;
  max-width: 1400px;
  height: 100vh;
  background: white;
}

/* ============================================
   Left Side - Login Form
   ============================================ */

.login-left {
  flex: 0 0 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: white;
}

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

.login-header {
  margin-bottom: 2.5rem;
}

.login-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #1a1d2e;
  margin-bottom: 1rem;
}

.login-subtitle {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.blue-bar {
  width: 4px;
  min-height: 40px;
  background: #002f56;
  border-radius: 2px;
  margin-top: 2px;
}

.login-subtitle p {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
}

/* ============================================
   Form Styles
   ============================================ */

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1d2e;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: 'Manrope', sans-serif;
  background: #f9fafb;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #002f56;
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 47, 86, 0.1);
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-group-checkbox {
  display: flex;
  align-items: center;
  margin-top: -0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #6b7280;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #002f56;
}

/* ============================================
   Login Button
   ============================================ */

.login-button {
  width: 100%;
  padding: 0.95rem 1.5rem;
  background: #1a1d2e;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.login-button:hover {
  background: #002f56;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 47, 86, 0.3);
}

.login-button:active {
  transform: translateY(0);
}

/* ============================================
   Footer & Links
   ============================================ */

.login-footer {
  margin-top: 1.5rem;
  text-align: center;
}

.forgot-password {
  color: #002f56;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #003d70;
  text-decoration: underline;
}

/* ============================================
   Error Message
   ============================================ */

.error-message {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #dc2626;
  font-size: 0.9rem;
}

/* ============================================
   Right Side - Welcome Section
   ============================================ */

.login-right {
  flex: 1;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.welcome-content {
  text-align: left;
  max-width: 600px;
}

.welcome-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.welcome-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1d2e;
  line-height: 1.2;
  margin-bottom: 2.5rem;
}

.hero-image {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 16/10;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.image-placeholder {
  width: 100%;
  height: 100%;
  background-image: url('https://pub-e2645b5e04fb495db08b896c439dd18d.r2.dev/PBSerum/LandingPage/Slider%20principal.PNG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   Responsive Design
   ============================================ */

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

  .login-left {
    flex: 1;
    padding: 2rem;
  }

  .login-right {
    flex: 1;
    padding: 2rem;
  }

  .welcome-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .login-container {
    height: auto;
    min-height: 100vh;
  }

  .login-left {
    padding: 2rem 1.5rem;
  }

  .login-right {
    display: none;
  }

  .welcome-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .login-left {
    padding: 1.5rem 1rem;
  }

  .login-title {
    font-size: 1.5rem;
  }

  .form-input {
    font-size: 16px; /* Prevent zoom on iOS */
  }
}
