/* ============================================
   Reset & Base Styles
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.5;
}

/* ============================================
   Main Container
   ============================================ */
.login-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ============================================
   Visual Panel (Left Side) - Image Display
   ============================================ */
.visual-panel {
  flex: 1;
  background: linear-gradient(135deg,
      #c9b8e8 0%,
      #a8d4e6 30%,
      #8dd4cf 60%,
      #b8e6d4 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-image {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

/* ============================================
   Form Panel (Right Side)
   ============================================ */
.form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #ffffff;
}

.form-container {
  width: 100%;
  max-width: 400px;
}

/* Title */
.form-container h1 {
  font-size: 2rem;
  font-weight: 400;
  color: #333;
  margin-bottom: 8px;
  text-align: center;
}

.subtitle {
  text-align: center;
  color: #666;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 32px;
}

/* ============================================
   Form Styles
   ============================================ */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.input-group label {
  font-size: 0.9rem;
  font-weight: 400;
  color: #1a9a7a;
}

.input-group input {
  width: 100%;
  padding: 10px 0;
  font-size: 1rem;
  font-family: inherit;
  color: #333;
  background: transparent;
  border: none;
  border-bottom: 1px solid #ddd;
  outline: none;
  transition: border-color 0.3s ease;
}

.input-group input:focus {
  border-bottom-color: #1a9a7a;
}

.input-group input::placeholder {
  color: #aaa;
}

.input-help {
  font-size: 0.8rem;
  color: #888;
}

/* ============================================
   Form Options
   ============================================ */
.form-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* Checkbox */
.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #1a9a7a;
  cursor: pointer;
}

.checkbox-label {
  font-size: 0.85rem;
  color: #555;
}

/* ============================================
   Login Button
   ============================================ */
.btn-login {
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  color: white;
  background: linear-gradient(135deg, #1a9a7a 0%, #2ab090 100%);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 16px;
}

.btn-login:hover {
  background: linear-gradient(135deg, #158a6a 0%, #239a80 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(26, 154, 122, 0.3);
}

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

/* ============================================
   Alerts
   ============================================ */
.error-alert {
  background: #fff1f1;
  border: 1px solid #f5b5b5;
  color: #b42318;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
}

/* ============================================
   Version Footer
   ============================================ */
.version {
  text-align: center;
  margin-top: 50px;
  font-size: 0.75rem;
  color: #aaa;
  letter-spacing: 1px;
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 900px) {
  .login-container {
    flex-direction: column;
  }

  .visual-panel {
    min-height: 250px;
    flex: none;
  }

  .panel-image {
    max-width: 50%;
    max-height: 80%;
  }

  .form-panel {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .form-container h1 {
    font-size: 1.6rem;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
  }

  .visual-panel {
    min-height: 200px;
  }

  .panel-image {
    max-width: 40%;
  }
}
